Skip to content

Node

The base class for all other nodes.

The ID of the node. This is auto generated when creating nodes via script. For GLTF models converted to nodes, it uses the same object name you would see in blender.

NOTE: Blender GLTF exporter does rename objects in some cases, eg by removing spaces. Best practice is to simply name everything in UpperCamelCase with no other characters.

The local position of the node.

The local quaternion rotation of the node. Updating this automatically updates the rotation property.

The local euler rotation of the node. Updating this automatically updates the quaternion property.

The local scale of the node.

The world matrix of this node in global space.

The parent node, if any.

The child nodes.

Adds otherNode as a child of this node.

Removes otherNode if it is a child of this node.

Traverses this and all descendents calling callback with the node in the first argument.