How to slow down a spaceship using C#?

I have a spaceship in my game world that I can add force to so i can rotate and move in all axis. The problem I have is, how do i make it slow down after applying this force? Most importantly, i need it to slow down and stop spinning while playing appropriate thruster effects… How is this done?

1 Answer

1

Apply a force in the opposite direction to the direction it’s travelling in.

Yes, but how would i know which direction its travelling? And how will it know when to stop?