Center of gravity
-
- Posts: 30
- Joined: Mon Apr 25, 2011 6:07 pm
Center of gravity
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
Yup; you can offset the collision proxy from the entity's position:
Code: Select all
entity.CollisionInformation.LocalPosition = new Vector3(0, 1, 0);