Local Transform Info
Use Local Transform Info to get the local space position, rotation, and scale of a Transform component. If a Transform component is parented under another Transform component, it inherits the parent Transform component’s local space coordinates. Local Transform Info is in the Transform category.
Input
Name | Data Type | Description |
---|---|---|
Transform | Transform | The Transform component you want to get the local transform information for. |
Output
Name | Data Type | Description |
---|---|---|
Local Position | Vec3 | The local position of the Transform component. |
Local Rotation | Vec3 | The local rotation of the Transform component. |
Local Scale | Vec3 | The local scale of the Transform component. |
Up Dir | Vec3 | The local Y axis direction (green arrow) of the Transform component. |
Right Dir | Vec3 | The local X axis direction (red arrow) of the Transform component. |
Forward Dir | Vec3 | The local Z axis direction (blue arrow) of the Transform component. |
Example
This example monitors the sphere’s local rotation through the Local Pose node. The sphere has been assigned to Head Tracker and has its own self-rotate update according to time. The Local Pose node will only return the sphere’s local transform, which the pos will be fixed to (0, 20, 0) while the rot is just the self-rotate number.