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

public class JointState extends JoltPhysicsObject
The local-space coordinate transform of an animation joint relative to its parent joint. (native type: SkeletonPose::JointState)
  • Method Details

    • getRotation

      public Quat getRotation()
      Copy the rotation. The state is unaffected. (native attribute: mRotation)
      Returns:
      a new rotation quaternion
    • getTranslation

      public Vec3 getTranslation()
      Copy the translation offset. The state is unaffected. (native attribute: mTranslation)
      Returns:
      a new offset vector
    • setRotation

      public void setRotation(QuatArg rotation)
      Alter the rotation. (native attribute: mRotation)
      Parameters:
      rotation - the desired rotation (not null, unaffected)
    • setTranslation

      public void setTranslation(Vec3Arg offset)
      Alter the translation offset. (native attribute: mTranslation)
      Parameters:
      offset - the desired offset (not null, unaffected)