Node::SetNodePosition
Defined in:
Sets a node's local position.
C4Node.h
Prototype
void SetNodePosition(const Point3D& position);
Parameters
position |
The new local position. |
Description
The SetNodePosition
function sets a node's local position without affecting the rest of the node's transform. As with the Node::SetNodeTransform
function, the world transform is not valid until the node is updated.
Special Considerations
The SetNodePosition
function should not be called for any node under the control of the physics simulation through a RigidBodyController
. Instead, the RigidBodyController::SetRigidBodyPosition
function should be called.
See Also