Using the following to turn a spaceship in a C# FarseerPhysics simulation.

 var turnPower = _Inventory.EngineTurnPower * time;

If the user keeps holding in the turn key the ship will go into a superspeed turn och chaos were it eventually is impossible to tell which direction it is facing.

What would be some good way of limiting the turn speed that the user can cause, without limiting the simulation itself.

  • \$\begingroup\$ One idea I have to accomplish this is to get the delta rotation, and if it is greater than the max allowed and the user is trying to turn in that direction then i simply don't. But maybe theres a better physics way of doing it? \$\endgroup\$
    – JensB
    Sep 17, 2017 at 19:24

1 Answer 1


There's no friction in space so what is happening is actually the proper realistic behaviour: The ship spins faster and faster.

If you want to limit rotation speed you can use Body.AngularDamping to add friction or clamp Body.AngularVelocity or both.

Adding friction/damping will reduce acceleration gradually.

Clamping velocity will put a hard limit on the speed and effectively cut acceleration to zero instantly.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .