C4 Engine
C4 Engine API Documentation

RigidBodyController::GetBodyMass

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

float GetBodyMass(voidconst;

Description
The GetBodyMass function returns the total mass of the shapes composing a rigid body in metric tons (i.e., in thousands of kilograms). If any shapes overlap, then the full mass of each shape is included in the total mass for the rigid body.
See Also

RigidBodyController::GetBodyVolume

ShapeObject::GetShapeDensity

ShapeObject::SetShapeDensity