align my ship along the spline

BlitzMax Forums/BlitzMax Beginners Area/align my ship along the spline

hub(Posted 2005) [#1]
Hi ! How to align my ship along the spline ? Could you help me with some ideas ?
Thanks !




My code :



ship.png


tonyg(Posted 2005) [#2]
This might help.
attack waves
<edit> Hmm, maybe not as it won't align the ship.


Diablo(Posted 2005) [#3]
would you just need to get the position of the ship and then the next position, use atan2 (nxtx - curx, nxty - cury) and the set that as the drawing angle.


hub(Posted 2005) [#4]
Thanks Diablo :




ship2.png