C4 Engine
C4 Engine API Documentation

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.
WARNING. The SetRigidBodyTransform function should not ordinarily be called to set the transform of a rigid body except in special circumstances, such as to set the initial transform of a newly created rigid body or to reinitialize the transform of a rigid body after it has been teleported to a new location. Otherwise, calling the SetRigidBodyTransform function can interfere with the normal processing of the Physics Manager and cause graphical features such as motion blur not to render correctly for the rigid body.
See Also

RigidBodyController::SetRigidBodyPosition

RigidBodyController::SetRigidBodyMatrix3D