C4 Engine
C4 Engine API Documentation

class PhysicsController

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

class PhysicsController final : 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.
PhysicsController::WakeFieldRigidBodies Wakes all rigid bodies affected by a force field.
PhysicsController::PurgeGeometryContacts Purges all contacts with a particular geometry node.
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