C4 Engine Terathon Software C4 Engine API Documentation

• Physics Manager

API Links
Developer Links

RigidBodyController::SetRigidBodyTransform

Defined in:  C4Physics.h
Sets the node transform for a rigid body.
Prototype

void SetRigidBodyTransform(const Transform4D& transform);

Parameters
transform The new node transform for the rigid body.
Description
The SetRigidBodyTransform function sets the node transform for a rigid body. This function should be called instead of the Node::SetNodeTransform function to change the node transform for any node under the control of a RigidBodyController.

The upper-left 3 × 3 portion of the matrix specified by the transform parameter must be right-handed and orthogonal.
See Also

RigidBodyController::SetRigidBodyPosition

RigidBodyController::SetRigidBodyMatrix3D