C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

RigidBodyController::SetExternalTorque

Defined in:  C4Physics.h
Sets the external torque acting on a rigid body.
Prototype

void SetExternalTorque(const Vector3D& torque);

Parameters
torque The new external torque, in world-space coordinates.
Description
The SetExternalTorque function sets the external torque, in world-space coordinates, acting on a rigid body about its center of mass to the torque specified by the torque parameter. The torque is measured in kilonewtons times meters (kN·m).

Once an external torque is established, it is applied continuously until it is removed. The RigidBodyController::ApplyImpulse function can be used to exert a one-time instantaneous torque on a rigid body.

The initial value of the external torque is (0,0,0).
See Also

RigidBodyController::GetExternalTorque

RigidBodyController::GetExternalForce

RigidBodyController::SetExternalForce

RigidBodyController::ApplyImpulse