Node::SetNodeMatrix3D
Defined in:
Sets the upper-left 3 × 3 portion of a node's local transform.
C4Node.h
Prototype
void SetNodeMatrix3D(const Matrix3D& matrix);
void SetNodeMatrix3D(const Vector3D& c1, const Vector3D& c2, const Vector3D& c3);
Parameters
matrix |
The new upper-left 3 × 3 portion of the local transform. |
c1 |
The first column of the 3 × 3 matrix. |
c2 |
The second column of the 3 × 3 matrix. |
c3 |
The third column of the 3 × 3 matrix. |
Description
The SetNodeMatrix3D
function sets the upper-left 3 × 3 portion of a node's local transform without effecting the translation portion in the fourth column of the matrix. As with the Node::SetNodeTransform
function, the world transform is not valid until the node is updated.
Special Considerations
The SetNodeMatrix3D
function should not be called for any node under the control of the physics simulation through a RigidBodyController
. Instead, the RigidBodyController::SetRigidBodyMatrix3D
function should be called.
See Also