Class SkeletalAnimation

java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SkeletalAnimation
All Implemented Interfaces:
ConstJoltPhysicsObject, RefTarget, AutoCloseable, Comparable<JoltPhysicsObject>

public class SkeletalAnimation extends JoltPhysicsObject implements RefTarget
A skeletal animation for skinning.
  • Method Details

    • getDuration

      public float getDuration()
      Return the duration of the animation. The animation is unaffected.
      Returns:
      the duration (in seconds)
    • sample

      public void sample(float time, SkeletonPose storePose)
      Interpolate the joint transforms for the specified animation time. The animation is unaffected.
      Parameters:
      time - the animation time to use (in seconds)
      storePose - storage for the interpolated pose (not null, modified)
    • getRefCount

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

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

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