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.intReturn 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, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, vaMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods 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:
getNamein interfaceConstJoint- Returns:
- the name
-
getParentJointIndex
public int getParentJointIndex()Return the index of the parent joint. The joint is unaffected. (native property: mParentJointIndex)- Specified by:
getParentJointIndexin 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:
getParentNamein interfaceConstJoint- Returns:
- the name
-