This project has moved. For the latest updates, please go here.

Center of Mass + Torque

Topics: User Forum
Jul 15, 2012 at 11:13 PM

I am new to using Farseer and have a question about center of mass and applying torque.

I was able to apply a force to the body easily and have it move in space however once I started to apply torque I noticed that it was applying the torque around position 0, 0 instead of the center of mass.

My body is defined by as

            body = BodyFactory.CreateCircle(world, 5, 1);
            body.BodyType = BodyType.Dynamic;
            body.Mass = 1;
            body.Restitution = 0.2f;
            body.Friction = 0.2f;

What do I need to do to have the torque be apply along the Z axis of the center of mass instead the LocalCenter which it appears to be using?

Jul 16, 2012 at 2:05 PM

But (0,0) in local coordinates is the center of mass for a circle.