RSX Code Reference
    Preparing search index...

    Class Skeleton

    Contains information about bones required for skeletal animation.

    Must be immutable in order to be usable on multiple threads

    Index
    • Parameters

      • OptionalisInternalConstructor: boolean

      Returns Skeleton

    • 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

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

      Parameters

      • boneIndex: number

      Returns number[]

    • Returns the local transform of the bone at bind pose.

      Parameters

      • boneIndex: number

      Returns Transform

    • Returns the world transform of the bone at bind pose.

      Parameters

      • boneIndex: number

      Returns Transform

    • 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.

    • Returns the world transform of the bone in node space (animation space).

      Parameters

      • boneIndex: number

      Returns Transform

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

      Parameters

      • boneIndex: number

      Returns number[]