Spaceship swings left and right without player controlling

I made a spaceship that can move up and rotate left and right according to the arrow keys, but after you press the left or right key and then let go, the rocket will swing side to side, and it swings more if you hold the key down longer. Does anyone know how to fix this?

Thanks :)

You should be more specific with your question. Posting your code will help to understand.

1 Answer

1

oh, nevermind, I fixed it. I just had to change the angular drag to 0