This class is a link to a node in a Model’s internal hierarchy tree. It’s composed of node information, and links to the directly adjacent tree nodes.
Instance Fields and Properties
|ModelNode Child||The first child node “below” on the hierarchy tree, or null if there are none. To see all children, get the Child and then iterate through its Siblings.|
|Matrix LocalTransform||The transform of this node relative to the Parent node. Setting this transform will update the ModelTransform, as well as all Child nodes below this one.|
|Material Material||The Model associated with this node. May be null, or may also be re-used elsewhere.|
|Mesh Mesh||The Mesh associated with this node. May be null, or may also be re-used elsewhere.|
|Matrix ModelTransform||The transform of this node relative to the Model itself. This incorporates transforms from all parent nodes. Setting this transform will update the LocalTransform, as well as all Child nodes below this one.|
|string Name||This is the ASCII name that identifies this ModelNode. It is generally provided by the Model’s file, but in the event no name (or null name) is provided, the name will default to “node”+index. Names are not required to be unique.|
|ModelNode Parent||The ModelNode above this one (“up”) in the hierarchy tree, or null if this is a root node.|
|ModelNode Sibling||The next ModelNode in the heirarchy, at the same level as this one. To the “right” on a heirarchy tree. Null if there are no more ModelNodes in the tree there.|
|bool Solid||A flag that indicates the Mesh for this node will be used in ray intersection tests. This flag is ignored if no Mesh is attached.|
|AddChild||Adds a Child node below this node, at the end of the child chain!|
|MoveChild||Moves this ModelNode class to the first Child of this node. If it cannot, then it remains the same.|
|MoveParent||Moves this ModelNode class to the Parent up the hierarchy tree. If it cannot, then it remains the same.|
|MoveSibling||Advances this ModelNode class to the next Sibling in the hierarchy tree. If it cannot, then it remains the same.|
Found an issue with these docs, or have some additional questions? Create an Issue on Github!