C4 Engine
C4 Engine API Documentation

PhysicsController::SetMaxLinearSpeed

Defined in:  C4Physics.h
Sets the maximum linear speed for all rigid bodies.
Prototype

void SetMaxLinearSpeed(float speed);

Parameters
speed The new maximum linear speed, in meters per second (m/s).
Description
The SetMaxLinearSpeed function sets the maximum linear speed, measured in meters per second (m/s), that is allowed for all rigid bodies to the value specified by the speed parameter. If the magnitude of a rigid body's linear velocity ever exceeds this value, then is it clamped at the end of the simulation step.
See Also

PhysicsController::GetMaxLinearSpeed

PhysicsController::GetMaxAngularSpeed

PhysicsController::SetMaxAngularSpeed