Interface ConstSkeletonPose

All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
SkeletonPose

public interface ConstSkeletonPose extends ConstJoltPhysicsObject
Read-only access to a SkeletonPose. (native type: const SkeletonPose)
  • Method Details

    • calculateLocalSpaceJointMatrices

      void calculateLocalSpaceJointMatrices(Mat44Array storeMatrices)
      Calculate the joint matrices in local space. The pose is unaffected.
      Parameters:
      storeMatrices - storage for the matrices (not null, modified)
    • draw

      void draw(SkeletonPoseDrawSettings settings, DebugRenderer renderer)
      Draw the current pose using the specified settings and renderer. The pose is unaffected.
      Parameters:
      settings - the desired settings (not null, unaffected)
      renderer - the renderer to use (not null)
    • draw

      void draw(SkeletonPoseDrawSettings settings, DebugRenderer renderer, RMat44Arg transform)
      Draw the current pose using the specified settings and renderer. The pose is unaffected.
      Parameters:
      settings - the desired settings (not null, unaffected)
      renderer - the renderer to use (not null)
      transform - the transform to apply (not null, unaffected, default=Identity)
    • getJoint

      ConstJointState getJoint(int jointIndex)
      Access the transforms of the specified joint. The pose is unaffected.
      Parameters:
      jointIndex - the index of the joint to access
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getJointCount

      int getJointCount()
      Count how many joints are in the pose. The pose is unaffected.
      Returns:
      the count (≥0)
    • getJointMatrix

      Mat44Arg getJointMatrix(int jointIndex)
      Access the transform matrix for the specified joint. The pose is unaffected.
      Parameters:
      jointIndex - which joint (≥0)
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getRootOffset

      RVec3 getRootOffset()
      Copy the root offset. The pose is unaffected.
      Returns:
      a new vector
    • getSkeleton

      ConstSkeleton getSkeleton()
      Access the skeleton that underlies this pose. The pose is unaffected.
      Returns:
      a new JVM object with the pre-existing native object assigned