C4 Engine
C4 Engine API Documentation

RigidBodyController::GetBodyCenterOfMass

Defined in:  C4Physics.h
Returns the body-space center of mass of a rigid body.
Prototype

const Point3D& GetBodyCenterOfMass(voidconst;

Description
The GetBodyCenterOfMass function returns the center of mass of a rigid body in the local coordinate space for the node to which the rigid body controller is assigned. The body-space center of mass is a constant.
See Also

RigidBodyController::GetWorldCenterOfMass

RigidBodyController::GetBodyVolume

RigidBodyController::GetBodyMass