Class: GeometryNode
Defined in: modules/engine/src/scenegraph/geometry-node.ts:12
Retained CPU geometry shared by render adapters and collider cooking.
Extends
Constructors
Constructor
new GeometryNode(
props):GeometryNode
Defined in: modules/engine/src/scenegraph/geometry-node.ts:14
Parameters
props
Returns
GeometryNode
Overrides
Properties
display
display:
boolean=true
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:30
Inherited from
geometry
readonlygeometry:Geometry
Defined in: modules/engine/src/scenegraph/geometry-node.ts:13
id
readonlyid:string
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:27
Inherited from
matrix
matrix:
Matrix4
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:28
Inherited from
position
position:
Vector3
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:31
Inherited from
props
props:
ScenegraphNodeProps={}
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:36
Inherited from
rotation
rotation:
Vector3
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:32
Inherited from
scale
scale:
Vector3
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:33
Inherited from
userData
userData:
Record<string,unknown> ={}
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:34
Inherited from
Methods
_setScenegraphNodeProps()
_setScenegraphNodeProps(
props):void
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:195
Parameters
props
ScenegraphNodeProps
Returns
void
Inherited from
ScenegraphNode._setScenegraphNodeProps
delete()
delete():
void
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:53
Returns
void
Deprecated
use .destroy()
Inherited from
destroy()
destroy():
void
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:50
Returns
void
Inherited from
getBounds()
getBounds():
ScenegraphBounds|null
Defined in: modules/engine/src/scenegraph/geometry-node.ts:19
Returns
ScenegraphBounds | null
Overrides
getCoordinateUniforms()
getCoordinateUniforms(
viewMatrix,modelMatrix?):object
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:143
Parameters
viewMatrix
any
modelMatrix?
any
Returns
object
modelMatrix
modelMatrix:
any
objectMatrix
objectMatrix:
any
viewMatrix
viewMatrix:
any
worldInverseMatrix
worldInverseMatrix:
any
worldInverseTransposeMatrix
worldInverseTransposeMatrix:
any
worldMatrix
worldMatrix:
any
Inherited from
ScenegraphNode.getCoordinateUniforms
setMatrix()
setMatrix(
matrix,copyMatrix?):void
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:83
Parameters
matrix
any
copyMatrix?
boolean = true
Returns
void
Inherited from
setMatrixComponents()
setMatrixComponents(
components):this
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:91
Parameters
components
position?
any
rotation?
any
scale?
any
update?
boolean
Returns
this
Inherited from
ScenegraphNode.setMatrixComponents
setPosition()
setPosition(
position):this
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:65
Parameters
position
any
Returns
this
Inherited from
setProps()
setProps(
props):this
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:56
Parameters
props
ScenegraphNodeProps
Returns
this
Inherited from
setRotation()
setRotation(
rotation):this
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:71
Parameters
rotation
any
Returns
this
Inherited from
setScale()
setScale(
scale):this
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:77
Parameters
scale
any
Returns
this
Inherited from
toString()
toString():
string
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:61
Returns
string
Inherited from
update()
update(
__namedParameters?):this
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:127
Parameters
__namedParameters?
position?
any
rotation?
any
scale?
any
Returns
this
Inherited from
updateMatrix()
updateMatrix():
this
Defined in: modules/engine/src/scenegraph/scenegraph-node.ts:113
Returns
this