Interface ConstJointState
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
JointState
Read-only access to a
JointState. (native type: const
SkeletonPose::JointState)-
Method Summary
Modifier and TypeMethodDescriptionCopy the rotation.voidgetRotation(Quat storeResult) Copy the rotation.Copy the translation offset.voidgetTranslation(Vec3 storeResult) Copy the translation offset.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa, targetVaOrZero
-
Method Details
-
getRotation
Quat getRotation()Copy the rotation. The state is unaffected.- Returns:
- a new rotation quaternion
-
getRotation
Copy the rotation. The state is unaffected.- Parameters:
storeResult- storage for the rotation (notnull, modified)
-
getTranslation
Vec3 getTranslation()Copy the translation offset. The state is unaffected.- Returns:
- a new offset vector
-
getTranslation
Copy the translation offset. The state is unaffected.- Parameters:
storeResult- storage for the offset (notnull, modified)
-