Object3D
Defined in: radiance/src/core/Object3D.ts:12
Anything placed in a scene: a position, a rotation and a scale relative to its parent, and
children placed relative to it. matrixWorld is where it ends up, after
updateMatrixWorld(), which the renderer calls on the scene before every frame.
Extended by
Section titled “Extended by”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Object3D():
Object3D
Returns
Section titled “Returns”Object3D
Properties
Section titled “Properties”children
Section titled “children”
readonlychildren:Object3D[] =[]
Defined in: radiance/src/core/Object3D.ts:21
readonlyid:number
Defined in: radiance/src/core/Object3D.ts:13
matrix
Section titled “matrix”
readonlymatrix:Matrix4
Defined in: radiance/src/core/Object3D.ts:18
matrixWorld
Section titled “matrixWorld”
readonlymatrixWorld:Matrix4
Defined in: radiance/src/core/Object3D.ts:19
name:
string=''
Defined in: radiance/src/core/Object3D.ts:14
parent
Section titled “parent”parent:
Object3D|null=null
Defined in: radiance/src/core/Object3D.ts:20
position
Section titled “position”
readonlyposition:Vector3
Defined in: radiance/src/core/Object3D.ts:15
rotation
Section titled “rotation”
readonlyrotation:Euler
Defined in: radiance/src/core/Object3D.ts:16
readonlyscale:Vector3
Defined in: radiance/src/core/Object3D.ts:17
visible
Section titled “visible”visible:
boolean=true
Defined in: radiance/src/core/Object3D.ts:23
Hidden objects and their children are left out of the render.
Methods
Section titled “Methods”add(…
objects):this
Defined in: radiance/src/core/Object3D.ts:25
Parameters
Section titled “Parameters”objects
Section titled “objects”…Object3D[]
Returns
Section titled “Returns”this
lookAt()
Section titled “lookAt()”lookAt(
target):this
Defined in: radiance/src/core/Object3D.ts:71
Turn so that the object’s -z axis points at target (in its parent’s space), with no roll:
how a camera is aimed. Straight up or down keeps the current yaw.
Parameters
Section titled “Parameters”target
Section titled “target”Returns
Section titled “Returns”this
remove()
Section titled “remove()”remove(…
objects):this
Defined in: radiance/src/core/Object3D.ts:35
Parameters
Section titled “Parameters”objects
Section titled “objects”…Object3D[]
Returns
Section titled “Returns”this
traverse()
Section titled “traverse()”traverse(
fn):void
Defined in: radiance/src/core/Object3D.ts:47
Call fn on this object and every descendant, parents first.
Parameters
Section titled “Parameters”(o) => void
Returns
Section titled “Returns”void
traverseVisible()
Section titled “traverseVisible()”traverseVisible(
fn):void
Defined in: radiance/src/core/Object3D.ts:53
Like traverse, but skipping hidden objects and what is under them.
Parameters
Section titled “Parameters”(o) => void
Returns
Section titled “Returns”void
updateMatrixWorld()
Section titled “updateMatrixWorld()”updateMatrixWorld():
void
Defined in: radiance/src/core/Object3D.ts:60
Recompute matrix from position, rotation and scale, and matrixWorld down the tree.
Returns
Section titled “Returns”void