C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

RigidBodyController::GetPhysicsController

Defined in:  C4Physics.h
Returns the physics controller to which a rigid body belongs.
Prototype

PhysicsController *GetPhysicsController(voidconst;

Description
The GetPhysicsController function returns the physics controller to which a rigid body belongs. Every rigid body in a world belongs to the same global physics controller. If there is no physics controller in the world, then this function returns nullptr.
See Also

PhysicsController