Page 1 of 1

Center of gravity

Posted: Thu Sep 22, 2011 6:02 pm
by BabaJustin
Is there a way to change the center of gravity of an Entity? I have some cylinders that I would very much like to have their center of gravity on the bottom rather in the center.

Re: Center of gravity

Posted: Thu Sep 22, 2011 8:01 pm
by Norbo
Yup; you can offset the collision proxy from the entity's position:

Code: Select all

entity.CollisionInformation.LocalPosition = new Vector3(0, 1, 0);