java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.Joint
- All Implemented Interfaces:
ConstJoint
,ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
A particular joint in a skeleton. (native type:
Skeleton::Joint
)-
Constructor Summary
Constructors -
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 class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Constructor Details
-
Joint
public Joint()Instantiate a default joint.
-
-
Method Details
-
getName
Return the name of the joint. The joint is unaffected. (native property: mName)- Specified by:
getName
in interfaceConstJoint
- Returns:
- the name
-
getParentJointIndex
public int getParentJointIndex()Return the index of the parent joint. The joint is unaffected. (native property: mParentJointIndex)- Specified by:
getParentJointIndex
in interfaceConstJoint
- Returns:
- the index (≥0) or -1 for a root joint
-
getParentName
Return the name of the parent joint. The joint is unaffected (native property: mParentName)- Specified by:
getParentName
in interfaceConstJoint
- Returns:
- the name
-