C4 Engine
C4 Engine API Documentation

RigidBodyController::SetRigidBodyPosition

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

void SetRigidBodyPosition(const Point3D& position);

Parameters
position The new node position for the rigid body.
Description
The SetRigidBodyPosition function sets the node position for a rigid body. This function should be called instead of the Node::SetNodePosition function to change the node position for any node under the control of a RigidBodyController.
WARNING. The SetRigidBodyPosition 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 SetRigidBodyPosition 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::SetRigidBodyTransform

RigidBodyController::SetRigidBodyMatrix3D