Extends
Members
# translation :Array.<number>
The local translation of the pawn relative to its parent. The value is a 3D vector. This value is read directly from the spatial pawn's actor.
Type:
- Array.<number>
# rotation :Array.<number>
The local rotation of the pawn relative to its parent. The value is a quaternion. This value is read directly from the spatial pawn's actor.
Type:
- Array.<number>
# scale :Array.<number>
The local scale of the pawn relative to its parent. The value is a 3D vector. This value is read directly from the spatial pawn's actor.
Type:
- Array.<number>
# local :Array.<number>
The local 4x4 transformation matrix. This is the pawn's transform relative to its parent, and is derived from its translation, rotation, and scale. This value is read directly from the spatial pawn's actor.
Type:
- Array.<number>
# global :Array.<number>
The global 4x4 transformation matrix. This is the pawn's transform relative to world space, taking into account its local transform and the local transforms of all of its parents.
Type:
- Array.<number>
# lookGlobal :Array.<number>
By default, this is the same as global. However you can override it if you want to add an additional transform for a camera attached to the pawn. (For example, first-person avatars should override lookGlobal to let the user look up and down without changing the pawn's facing.)
Type:
- Array.<number>
# 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:
- Inherited From:
Example:
if (treePawn.parent.actor === treePawn.actor.parent ) {console.log("Always true!")};