Private
_castPrivate
_childrenPrivate
_enabledPrivate
Optional
_parentPrivate
Optional
_physicsPrivate
_receivePrivate
eventReadonly
idUnique ID for this node
Metadata is a key/value store for any extra data you want to store on a node
Position of this Node in world space, relative to any parent nodes (if any)
Rotation quaternion of this Node in world space, relative to any parent nodes (if any)
Scale of this Node in world space, relative to any parent nodes (if any)
Does this Node cast shadows, default true
Set will this Node cast shadows, this will also set all child nodes
Is this Node enabled. Disabled nodes will not be rendered
Set enabled state of this Node, this will also set all child nodes
Return the world or model matrix for this node, this is the matrix that places this node in the world. This will be in relation to the parent node, if there is one.
Get the physics body for this Node, if there is one
Set the physics body for this Node
Does this Node receive shadows, default true
Set will this Node receive shadows, this will also set all child nodes
Convenience method to make another Node a child of this one
Add an event handler to listen for node changes
NodeEvent type, one of 'position', 'rotation', 'scale'
Function to call when event is triggered
Convenience method to remove a child Node
Set the rotation quaternion directly, normally users should use the rotate methods. This method is for advanced uses, like integration with an external physics system
Generated using TypeDoc
A Node with position, rotation, scale, all Instances extend this class. But Nodes also be created to group instances and simplify transformations.