ModelData:getNodeTransform
EditReturns local transform (position, orientation, and scale) of a node, relative to its parent.
x, y, z, sx, sy, sz, angle, ax, ay, az = ModelData:getNodeTransform(node)Arguments
| Name | Type | Description |
| node | string | number | The name or index of a node. |
Returns
| Name | Type | Description |
| x | number | The x coordinate. |
| y | number | The y coordinate. |
| z | number | The z coordinate. |
| sx | number | The x scale. |
| sy | number | The y scale. |
| sz | number | The z scale. |
| angle | number | The number of radians the node is rotated around its axis of rotation. |
| 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. |
Notes
For best results when animating, it's recommended to keep the 3 components of the scale the same.