Model:setNodePose

Sets or blends the pose (position and orientation) of a node to a new pose.


Model:setNodePose(index, position, orientation, blend)

Arguments

NameTypeDefaultDescription
indexnumber The index of the node.
positionVec3 The target position. Can also be provided as 3 numbers.
orientationQuat The target orientation. Can also be provided as 4 numbers in angle-axis form.
blendnumber1.0 A number from 0 to 1 indicating how much of the target pose to blend in. A value of 0 will not change the node's pose at all, whereas 1 will fully blend to the target pose.

Returns

Nothing


Model:setNodePose(name, position, orientation, blend)

Arguments

NameTypeDefaultDescription
namestring The name of the node.
positionVec3 The target position. Can also be provided as 3 numbers.
orientationQuat The target orientation. Can also be provided as 4 numbers in angle-axis form.
blendnumber1.0 A number from 0 to 1 indicating how much of the target pose to blend in. A value of 0 will not change the node's pose at all, whereas 1 will fully blend to the target pose.

Returns

Nothing

See also