Original Post
Hi and sorry for my terrible english at first... I have a big problem with one of my node animators in spaceship sim. I'm moving a node (spaceship) along a continous spline build using Hermites. Movement is performed perfectly, but now I want to rotate a ship to match the orientation of the spline. And here problems begins... 1. How to calculate a direction that ship is pointing to? I try two follownig methods: - In each Hermite I have start and end tangent, so I try to interpolate them according to position of ship on this Hermite - I also try to store last position and substract it from current position, so I have delta movement vector But both methods fails when angle of a spline is changing drastically (the ship makes a 'quick flip' in this situation)... 2. How to translate this direction to angle measured in radians?. For one axis I have done it using trigonometry but for all three axes? Should one axis (like UP) always be defined? Please, help...