Skip to main content

Object3D

Since version 4.0.0

Base class for 3D objects

class Object3D

Properties

Local matrix of the object

Position of the object

Rotation quaternion

A scale vector of the object

Methods

Update local matrix of the object.

Constructor

Create new instance.
new Object3D(): Object3D

Properties

matrix

>=4.0.0
matrix

mat4

Local matrix of the object

position

>=4.0.0
position

vec3

Position of the object

rotation

>=4.0.0
rotation

quat

Rotation quaternion

scale

>=4.0.0
scale

vec3

A scale vector of the object

Methods

updateMatrix

>=4.0.0
updateMatrix

void

updateMatrix(): void

Update local matrix of the object.