Class SkeletonPose

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

public class SkeletonPose extends JoltPhysicsObject
A skeleton with joint transforms specifying a pose.
  • Constructor Details

    • SkeletonPose

      public SkeletonPose()
      Instantiate a default pose.
    • SkeletonPose

      public SkeletonPose(SkeletonPose original)
      Instantiate a clone of the specified pose.
      Parameters:
      original - the pose to clone (not null, unaffected)
  • Method Details

    • calculateJointMatrices

      public void calculateJointMatrices()
      Convert the joint transforms to matrices.
    • getJoint

      public JointState getJoint(int jointIndex)
      Access the transforms of the specified joint.
      Parameters:
      jointIndex - the index of the joint to access
      Returns:
      a new JVM object with the pre-existing native object assigned
    • setRootOffset

      public void setRootOffset(RVec3Arg offset)
      Alter the root offset.
      Parameters:
      offset - the desired offset (not null, unaffected)
    • setSkeleton

      public void setSkeleton(Skeleton skeleton)
      Replace the skeleton.
      Parameters:
      skeleton - the desired skeleton (not null)