changing pivot point on body.

Sep 1, 2009 at 2:50 AM

I found a constructor overload for "geomFactory" but not one for "BodyFactory.Instance.CreateRectangleBody" to change the pivot point of an object.. i need to make it so my rectangle rotates around a different point.

can someone help out please thank you

 

Sep 1, 2009 at 2:13 PM

If you haven't already found out, create your body using the Bodyfactory then pass the body into the geomfactory constructor that contains the offset parameter. 

Then just use the body you just created to update your rotation!