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

The Transform Component.

Name

Type

Description

Possible values

position

Array of Number

A position.

Any array of 3 numbers.

rotation

Array of Number

A rotation on each axis (x, y and z). Angles are specified in degrees.

Any array of 3 numbers.

scale

Array of Number

A scale on each axis (x, y and z).

Any array of 3 numbers.