Constant Force

May 11, 2011 at 7:23 AM

Is there a way to apply a constant force to a revolute joint.

The effect i'm after is like a fan spinning constantly.

Or is it a matter of reapplying a force every X seconds in the game loop?

May 11, 2011 at 1:46 PM

The Physics Helper doesn't expose this, but you could code it up manually. Look in the Farseer documentation for Motor - you need to set this up for applying constant torque, etc.

May 11, 2011 at 2:13 PM

Thanks Andy, I'll give it a go.

May 12, 2011 at 3:10 AM

To anyone else looking for something similar i found this on the farseer forums


I added and positioned the body in blend and set it to static. Then in code set these properties: 


wheel.BodyObject.BodyType = BodyType.Kinematic; 

wheel.BodyObject.AngularVelocity = 0.1f * Math.Pi; 

wheel.BodyObject.SleepingAllowed = false

Thanks for the heads up on the Motor, most of my problems are i know what i want to do i just don't know the terms to search for.