CentreofMassOffset

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
imtrobin
Posts: 101
Joined: Thu Jun 11, 2009 3:03 am

CentreofMassOffset

Post by imtrobin »

Hi I like to clarify difference in centreOfMass vs centreOfMassOffset? My impression of centreofMassOffset is a offset which we can use for graphics to offset the physics when graphics centre is not the same as centre of mass. I set the centreOfMassOffset but it does not seem that.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: CentreofMassOffset

Post by Norbo »

The centerOfMassOffset is the displacement vector from the geometric center of the collision shape to the center of mass. Setting the offset will not move the collision shape; it will only set the property.

By changing the offset, the location around which the entity rotates is changed. This can be used as another tool to make an object feel top heavy or with an otherwise odd weight distribution (as opposed to modifying the inertia tensor).
imtrobin
Posts: 101
Joined: Thu Jun 11, 2009 3:03 am

Re: CentreofMassOffset

Post by imtrobin »

I see. What I was thinking was like PhysX localPose, where we can move the where the centerposition means relative to the entity. Example, for a box, we move so it's centerposition is means the bottom of the box instead of centre of the box.
Post Reply