C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

RigidBodyController::GetCenterOfMass

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

const Point3D& GetCenterOfMass(voidconst;

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

RigidBodyController::GetBodyVolume

RigidBodyController::GetBodyMass