Transform

A 3D transform

Constructors

this
this(Transform parent)

Create a new 3D transform

this
this(vec3 position, Transform parent)

Create a new 3D transform

this
this(vec3 position, vec3 scale, Transform parent)

Create a new 3D transform

this
this(vec3 position, vec3 scale, quat rotation, Transform parent)

Create a new 3D transform

Members

Functions

changeParent
void changeParent(Transform parent)

Changes the transform's parent

matrix
mat4 matrix()

Gets the calculated matrix for this transform

matrixUnscaled
mat4 matrixUnscaled()

Gets the calculated matrix for this transform without any scaling applied

Variables

origin
vec3 origin;

Origin of transform

position
vec3 position;

Position of transform

rotation
quat rotation;

Rotation of transform

scale
vec3 scale;

Scale of transform

Meta