C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

class PhysicsController

Defined in:  C4Physics.h
The PhysicsController class manages the physics simulation for an entire world.
Definition

class PhysicsController : public Controller

Member Functions
PhysicsController::GetMaxLinearSpeed Returns the maximum linear speed for all rigid bodies.
PhysicsController::SetMaxLinearSpeed Sets the maximum linear speed for all rigid bodies.
PhysicsController::GetMaxAngularSpeed Returns the maximum angular speed for all rigid bodies.
PhysicsController::SetMaxAngularSpeed Sets the maximum angular speed for all rigid bodies.
PhysicsController::GetGravityAcceleration Returns the global acceleration of gravity.
PhysicsController::SetGravityAcceleration Sets the global acceleration of gravity.
Constructor

PhysicsController();

Description
The PhysicsController class manages the physics simulation for an entire world. A physics controller can only be assigned to a physics node, and exactly one physics node should exist in the root zone of any world using the features of the Physics Manager.
Base Classes
Controller A PhysicsController is a specific type of controller.
See Also

PhysicsNode

RigidBodyController