Model:setNodePosition

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


Model:setNodePosition(index, position, blend)

Arguments

NameTypeDefaultDescription
indexnumber The index of the node.
positionVec3 The target position. Can also be provided as 3 numbers.
blendnumber1.0 A number from 0 to 1 indicating how much of the target 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


Model:setNodePosition(name, position, blend)

Arguments

NameTypeDefaultDescription
namestring The name of the node.
positionVec3 The target position. Can also be provided as 3 numbers.
blendnumber1.0 A number from 0 to 1 indicating how much of the target 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