Center of gravity

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
BabaJustin
Posts: 30
Joined: Mon Apr 25, 2011 6:07 pm

Center of gravity

Post 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.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Center of gravity

Post 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);
Post Reply