All Implemented Interfaces:
ConstJoint, ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class Joint extends JoltPhysicsObject implements ConstJoint
A particular joint in a skeleton. (native type: Skeleton::Joint)
  • Constructor Details

    • Joint

      public Joint()
      Instantiate a default joint.
  • Method Details

    • getName

      public String getName()
      Return the name of the joint. The joint is unaffected. (native property: mName)
      Specified by:
      getName in interface ConstJoint
      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 interface ConstJoint
      Returns:
      the index (≥0) or -1 for a root joint
    • getParentName

      public String getParentName()
      Return the name of the parent joint. The joint is unaffected (native property: mParentName)
      Specified by:
      getParentName in interface ConstJoint
      Returns:
      the name