SkeletonData

Description: The SkeletonData class provides access to all the bones in an IMVU asset's skeleton.

This allows you to attach geometries or additional behaviours to bones. For instance, it's used heavily by the Equip demo, to attach equipment to bones, or the Ragdoll demo, to attach physics to bones.

Fields:

  • Transform root - The Transform of the root bone.
  • Transform[] bones - The Transform of all the bones in the skeleton.

Methods:

  • bool HasBone(string bname) - Returns true if a bone by this name exists.
  • Transform GetBone(string bname) - If a bone by this name exists, return it. Otherwise return null.
  • int GetBoneIndex(string bname) - If a bone by this name exists, return it's index. Otherwise return -1.