Interface ConstSkeletonPose
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
SkeletonPose
Read-only access to a
SkeletonPose. (native type: const SkeletonPose)-
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateLocalSpaceJointMatrices(Mat44Array storeMatrices) Calculate the joint matrices in local space.voiddraw(SkeletonPoseDrawSettings settings, DebugRenderer renderer) Draw the current pose using the specified settings and renderer.voiddraw(SkeletonPoseDrawSettings settings, DebugRenderer renderer, RMat44Arg transform) Draw the current pose using the specified settings and renderer.getJoint(int jointIndex) Access the transforms of the specified joint.intCount how many joints are in the pose.getJointMatrix(int jointIndex) Access the transform matrix for the specified joint.Copy the root offset.Access the skeleton that underlies this pose.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
calculateLocalSpaceJointMatrices
Calculate the joint matrices in local space. The pose is unaffected.- Parameters:
storeMatrices- storage for the matrices (notnull, modified)
-
draw
Draw the current pose using the specified settings and renderer. The pose is unaffected.- Parameters:
settings- the desired settings (notnull, unaffected)renderer- the renderer to use (notnull)
-
draw
Draw the current pose using the specified settings and renderer. The pose is unaffected.- Parameters:
settings- the desired settings (notnull, unaffected)renderer- the renderer to use (notnull)transform- the transform to apply (notnull, unaffected, default=Identity)
-
getJoint
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
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
-