Model:setNodePosition

Edit

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



Arguments

NameTypeDefaultDescription
nodestring | number The name or index of a node.
xnumber The x coordinate of the new position.
ynumber The y coordinate of the new position.
znumber The z coordinate of the new position.
blendnumber1.0 A number from 0 to 1 indicating how much of the new position to blend in. A value of 0 will not change the node's position at all, whereas 1 will fully blend to the target position.

Returns

Nothing

Arguments

NameTypeDefaultDescription
nodestring | number The name or index of a node.
positionvector The new position.
blendnumber1.0 A number from 0 to 1 indicating how much of the new position to blend in. A value of 0 will not change the node's position at all, whereas 1 will fully blend to the target position.

Returns

Nothing

See also