Transform
Variables
Name |
Type |
Description |
---|---|---|
position |
Math::vec3 |
A position. |
rotation |
Math::vec3 |
A rotation on each axis (x, y and z). Angles are specified in radians. |
scale |
Math::vec3 |
A scale on each axis (x, y and z). |
Notes
When an Entity is created, a Transform Component is automatically created and assigned to this Entity.
The Transform component defines the Entity’s world position, rotation and scale.
JSON for the .ntsn - Scene scene file format:
Name |
Type |
Description |
Possible values |
||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
transform |
Array of Object |
|