Cylinder style 3d list

Blitz3D Forums/Blitz3D Beginners Area/Cylinder style 3d list

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Another possibility. Does not use curveangle at all... (to be honest I could not be bothered to try and figure out how to change it all, so consider this the lazy way).

Function UpdateListWheel()
	
	destin#	= (360 / MaxLines) * (SelectedTrackIndex-1)
	
	vecy#=-Sin(destin) : vecz#=Cos(destin)
		
	AlignToVector wheel,0,vecy,vecz,3,0.1

End Function



A couple of other changes are needed to limit the values correctly...

Global SelectedTrackIndex=1
;....
		If SelectedTrackIndex < 1 Then SelectedTrackIndex = MaxLines
;....
		If SelectedTrackIndex > MaxLines Then SelectedTrackIndex = 1


Well in fact three changes, but who's counting. ;)