java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.JointState
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
The local-space coordinate transform of an animation joint relative to its
parent joint. (native type:
SkeletonPose::JointState
)-
Method Summary
Modifier and TypeMethodDescriptionCopy the rotation.Copy the translation offset.void
setRotation
(QuatArg rotation) Alter the rotation.void
setTranslation
(Vec3Arg offset) Alter the translation offset.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Method Details
-
getRotation
Copy the rotation. The state is unaffected. (native attribute: mRotation)- Returns:
- a new rotation quaternion
-
getTranslation
Copy the translation offset. The state is unaffected. (native attribute: mTranslation)- Returns:
- a new offset vector
-
setRotation
Alter the rotation. (native attribute: mRotation)- Parameters:
rotation
- the desired rotation (not null, unaffected)
-
setTranslation
Alter the translation offset. (native attribute: mTranslation)- Parameters:
offset
- the desired offset (not null, unaffected)
-