I'm having trouble with the physics in my asteroid game. This is how I'm doing it now:
For the ship I know:
- It's heading in degrees (I'm thinking using degrees was a bad idea now.)
- It's speed
- It's position
- It's direction of momentum (The direction it's moving).
Basically when thrust is pressed, the direction of momentum is set to the ships current heading, then the ship is moved based off of that.
Now, it doesn't look that bad, except when you accelerate in a straight line, stop accelerating and change the direction of the ship, then thrust in the new direction. Instead of make a kind of arc like you would expect, it suddenly changes to the new direction.
I have some vague ideas of how fix this, but I wanted your advice