Model:setNodePosition
EditSets or blends the position of a node. This sets the local position of the node, relative to its parent.
Arguments
Name | Type | Default | Description |
index | number | The index of the node. | |
x | number | The x coordinate of the new position. | |
y | number | The y coordinate of the new position. | |
z | number | The z coordinate of the new position. | |
blend | number | 1.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
Name | Type | Default | Description |
name | string | The name of the node. | |
x | number | The x coordinate of the new position. | |
y | number | The y coordinate of the new position. | |
z | number | The z coordinate of the new position. | |
blend | number | 1.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
Name | Type | Default | Description |
index | number | The index of the node. | |
position | Vec3 | The new position. | |
blend | number | 1.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
Name | Type | Default | Description |
name | string | The name of the node. | |
position | Vec3 | The new position. | |
blend | number | 1.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