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).
A couple of other changes are needed to limit the values correctly...
Well in fact three changes, but who's counting. ;)
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. ;)