Model:setNodeOrientation

Sets or blends the orientation of a node to a new orientation.


Model:setNodeOrientation(index, orientation, blend)

Arguments

NameTypeDefaultDescription
indexnumber The index of the node.
orientationrotation The target 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


Model:setNodeOrientation(name, orientation, blend)

Arguments

NameTypeDefaultDescription
namestring The name of the node.
orientationrotation The target 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