Class Skeleton

Contains information about bones required for skeletal animation.

Must be immutable in order to be usable on multiple threads

Hierarchy

  • FrameworkObject
    • Skeleton

Constructors

  • Parameters

    • OptionalisInternalConstructor: boolean

    Returns Skeleton

Accessors

  • get boneCount(): number
  • Returns the total number of bones in the skeleton.

    Returns number

  • get rootBoneIndex(): number
  • Searches all bones to find a root bone. Returns -1 if no root can be found.

    Returns number

Methods

  • Gets all bone indices that are ancestors of the specified boneIndex.

    Parameters

    • boneIndex: number

    Returns number[]

  • Returns information about a bone at the provided boneIndex.

    Parameters

    • boneIndex: number

    Returns SkeletonBoneData

    All transform data is calculated when accesing the bone data. It's best to hold on the data for as long as possible instead if needed for a prolonged period of time with frequent access to the bone information.

  • Gets all bone indices that are descendants of the specified boneIndex.

    Parameters

    • boneIndex: number

    Returns number[]