Object3D
Since version 4.0.0
Base class for 3D objects
class Object3D extends Component<{
update: {
camera: Camera
}
}>
Extends
Properties
Local matrix of the object
Position of the object
Rotation quaternion
A scale vector of the object
Constructor
Create new instance.
new Object3D(): Object3D
Properties
matrix
>=4.0.0
matrixmat4
Local matrix of the object
position
>=4.0.0
positionvec3
Position of the object
rotation
>=4.0.0
rotationquat
Rotation quaternion
scale
>=4.0.0
scalevec3
A scale vector of the object
Methods
hasOn
hasOnboolean
hasOn<K>(eventName: K): boolean
Parameters
eventName
K
off
on
once
trigger
update
updatevoid
update(ctx: ObjectUpdateContext): void
Parameters
ctx
ObjectUpdateContext
updateMatrix
>=4.0.0
updateMatrixvoid
updateMatrix(): void
Update local matrix of the object.