Returns local transform (position, orientation, and scale) of a node, relative to its parent.
Arguments
Name | Type | Description |
index | number |
The index of the 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.
|
Arguments
Name | Type | Description |
name | string |
The name of the 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.
|
For best results when animating, it's recommended to keep the 3 components of the scale the same.
See also