Class Skeleton

All Implemented Interfaces:
ConstJoltPhysicsObject, RefTarget, AutoCloseable, Comparable<ConstJoltPhysicsObject>

public class Skeleton extends JoltPhysicsObject implements RefTarget
A joint hierarchy for skeletal animation.
  • Method Details

    • calculateParentJointIndices

      public void calculateParentJointIndices()
      Fill in the parent joint indices based on name.
    • getRefCount

      public int getRefCount()
      Count the active references to the native Skeleton. The skeleton is unaffected.
      Specified by:
      getRefCount in interface RefTarget
      Returns:
      the count (≥0)
    • setEmbedded

      public void setEmbedded()
      Mark the native Skeleton as embedded.
      Specified by:
      setEmbedded in interface RefTarget
    • toRef

      public SkeletonRef toRef()
      Create a counted reference to the native Skeleton.
      Specified by:
      toRef in interface RefTarget
      Returns:
      a new JVM object with a new native object assigned