Rotating around different rot. center

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
jakovd
Posts: 3
Joined: Thu Oct 27, 2011 2:07 pm

Rotating around different rot. center

Post by jakovd »

I want to rotate an entity around a position that is different than its center of mass / center of bounding volume.
Is entity.CollisionInformation.LocalPosition intended for this?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Rotating around different rot. center

Post by Norbo »

Yup. Setting the LocalPosition of the entity's collidable offsets its center from the Position of the entity using the LocalPosition rotated by the current entity Orientation.
Post Reply