Ahoy.
I have deadline for sending this to a game development competition tomorrow, so that’s why I need to ask you straight away.
What I’m trying to do is rotate my object to face forward to the direction of movement kind of like Superman does when he’s flying. In my game the player object is steered by giving force from four directions. The player is not supposed to control the rotation of the main character, so no use suggesting that I only apply force to the back of the object.
Here’s an early version of my game: http://koti.kapsi.fi/~leolavi/space/spacejunk.html
You can see that the dude is spinning randomly and not facing forward to the direction of movement. The top of his head should always face forward at the direction he’s headed.
Quick help is hugely appreciated!