How do you properly implement gravity to a free floating space object and some sort of friction when thrusting in opposite direction
问题 I am trying to program movement that is basically like Asteroids where once UP button is pressed you accelerate to a certain speed and then because in space you don't stop and can only slow down by thrusting in opposite direction. On top of that, I would like gravity to be pulling you towards the bottom of the screen. I have this accomplished for the most part but the issue I have is: When I turn around and thrust opposite direction, it doesn't slow down first going backwards before starting