RigidBodyController::SetExternalTorque
Defined in:
Sets the external torque acting on a rigid body.
C4Physics.h
Prototype
void SetExternalTorque(const Bivector3D& 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