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
indexnumber The index of the 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
namestring The name of the 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
indexnumber The index of the node.
positionVec3 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
namestring The name of the node.
positionVec3 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