Page 1 of 1

Rotating around different rot. center

Posted: Mon Oct 31, 2011 10:40 am
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?

Re: Rotating around different rot. center

Posted: Mon Oct 31, 2011 6:01 pm
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.