Package com.github.stephengold.joltjni
Class SkeletonPose
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SkeletonPose
- All Implemented Interfaces:
ConstJoltPhysicsObject,AutoCloseable,Comparable<ConstJoltPhysicsObject>
A skeleton with joint transforms specifying a pose.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiate a default pose.SkeletonPose(SkeletonPose original) Instantiate a clone of the specified pose. -
Method Summary
Modifier and TypeMethodDescriptionvoidConvert the joint transforms to matrices.getJoint(int jointIndex) Access the transforms of the specified joint.voidsetRootOffset(RVec3Arg offset) Alter the root offset.voidsetSkeleton(Skeleton skeleton) Replace the skeleton.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, va
-
Constructor Details
-
SkeletonPose
public SkeletonPose()Instantiate a default pose. -
SkeletonPose
Instantiate a clone of the specified pose.- Parameters:
original- the pose to clone (not null, unaffected)
-
-
Method Details
-
calculateJointMatrices
public void calculateJointMatrices()Convert the joint transforms to matrices. -
getJoint
Access the transforms of the specified joint.- Parameters:
jointIndex- the index of the joint to access- Returns:
- a new JVM object with the pre-existing native object assigned
-
setRootOffset
Alter the root offset.- Parameters:
offset- the desired offset (not null, unaffected)
-
setSkeleton
Replace the skeleton.- Parameters:
skeleton- the desired skeleton (not null)
-