Model:setNodeOrientation

Edit

Sets or blends the orientation of a node to a new orientation. This sets the local orientation of the node, relative to its parent.





Arguments

NameTypeDefaultDescription
indexnumber The index of the node.
anglenumber The number of radians the node should be rotated around its rotation axis.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.
blendnumber1.0 A number from 0 to 1 indicating how much of the target orientation to blend in. A value of 0 will not change the node's orientation at all, whereas 1 will fully blend to the target orientation.

Returns

Nothing

Arguments

NameTypeDefaultDescription
namestring The name of the node.
anglenumber The number of radians the node should be rotated around its rotation axis.
axnumber The x component of the axis of rotation.
aynumber The y component of the axis of rotation.
aznumber The z component of the axis of rotation.
blendnumber1.0 A number from 0 to 1 indicating how much of the target orientation to blend in. A value of 0 will not change the node's orientation at all, whereas 1 will fully blend to the target orientation.

Returns

Nothing

Arguments

NameTypeDefaultDescription
indexnumber The index of the node.
orientationQuat The orientation.
blendnumber1.0 A number from 0 to 1 indicating how much of the target orientation to blend in. A value of 0 will not change the node's orientation at all, whereas 1 will fully blend to the target orientation.

Returns

Nothing

Arguments

NameTypeDefaultDescription
namestring The name of the node.
orientationQuat The orientation.
blendnumber1.0 A number from 0 to 1 indicating how much of the target orientation to blend in. A value of 0 will not change the node's orientation at all, whereas 1 will fully blend to the target orientation.

Returns

Nothing

See also