This project has moved and is read-only. For the latest updates, please go here.

TargetAngle and rotation direction

Dec 9, 2008 at 7:57 PM
A tried a AngleJoint with TargetAngle set by a Xbox360 controller thumbstick.
I set the joints TargetAngle to the thumbsticks angle, but since the physics engine controlles the rotation,
I can't figure out how to avoid the problem of rotation in the opposite direction instead of the shortest way.
That is, when it should pass over 0.

I know how to do this when manually rotating, but not with Farseer, and I need the physics behavior.