Interface ConstJoint
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
Joint
Read-only access to a
Joint
. (native type: const Skeleton::Joint)-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Return the name of the joint.int
Return the index of the parent joint.Return the name of the parent joint.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getName
String getName()Return the name of the joint. The joint is unaffected.- Returns:
- the name
-
getParentJointIndex
int getParentJointIndex()Return the index of the parent joint. The joint is unaffected.- Returns:
- the index (≥0) or -1 for a root joint
-
getParentName
String getParentName()Return the name of the parent joint. The joint is unaffected.- Returns:
- the name
-