Package com.github.stephengold.joltjni
Class Skeleton
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.Skeleton
- All Implemented Interfaces:
ConstJoltPhysicsObject,RefTarget,AutoCloseable,Comparable<ConstJoltPhysicsObject>
A joint hierarchy for skeletal animation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidFill in the parent joint indices based on name.intCount the active references to the nativeSkeleton.voidMark the nativeSkeletonas embedded.toRef()Create a counted reference to the nativeSkeleton.Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, startCleaner, toString, va
-
Method Details
-
calculateParentJointIndices
public void calculateParentJointIndices()Fill in the parent joint indices based on name. -
getRefCount
public int getRefCount()Count the active references to the nativeSkeleton. The skeleton is unaffected.- Specified by:
getRefCountin interfaceRefTarget- Returns:
- the count (≥0)
-
setEmbedded
public void setEmbedded()Mark the nativeSkeletonas embedded.- Specified by:
setEmbeddedin interfaceRefTarget
-
toRef
Create a counted reference to the nativeSkeleton.
-