PM_Tree

PM_Tree

The abstract base class for mixins that organize pawns into hierarchical trees. (For example, a scene graph.) The pawn automatically updates its parent to be the pawn associated with its actor's parent.

Note - PM_Tree must be paired with AM_Tree in the actor.

Members

# parent :Pawn

The parent of the pawn in the hierarchical tree. This is the pawn associated with the parent of this pawn's actor. This property is updated automatically, when the actor's parent changes.

Type:
Example:
if (treePawn.parent.actor === treePawn.actor.parent ) {console.log("Always true!")};