Model:setNodePose
EditSets or blends the pose (position and orientation) of a node to a new pose. This sets the local pose of the node, relative to its parent. The scale will remain unchanged.
Arguments
Name | Type | Default | Description |
index | number | The index of the node. | |
x | number | The x component of the position. | |
y | number | The y component of the position. | |
z | number | The z component of the position. | |
angle | number | The number of radians the node should be rotated around its rotation axis. | |
ax | number | The x component of the axis of rotation. | |
ay | number | The y component of the axis of rotation. | |
az | number | The z component of the axis of rotation. | |
blend | number | 1.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
Arguments
Name | Type | Default | Description |
name | string | The name of the node. | |
x | number | The x component of the position. | |
y | number | The y component of the position. | |
z | number | The z component of the position. | |
angle | number | The number of radians the node should be rotated around its rotation axis. | |
ax | number | The x component of the axis of rotation. | |
ay | number | The y component of the axis of rotation. | |
az | number | The z component of the axis of rotation. | |
blend | number | 1.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
Arguments
Name | Type | Default | Description |
index | number | The index of the node. | |
position | Vec3 | The target position. Can also be provided as 3 numbers. | |
orientation | Quat | The target orientation. Can also be provided as 4 numbers in angle-axis form. | |
blend | number | 1.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
Arguments
Name | Type | Default | Description |
name | string | The name of the node. | |
position | Vec3 | The target position. Can also be provided as 3 numbers. | |
orientation | Quat | The target orientation. Can also be provided as 4 numbers in angle-axis form. | |
blend | number | 1.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