Class AdditionalConstraint

java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.AdditionalConstraint
All Implemented Interfaces:
ConstJoltPhysicsObject, AutoCloseable, Comparable<JoltPhysicsObject>

public class AdditionalConstraint extends JoltPhysicsObject
Specify an additional constraint for use in a ragdoll. (native type: RagdollSettings::AdditionalConstraint)
  • Constructor Details

    • AdditionalConstraint

      public AdditionalConstraint(int bodyIndex1, int bodyIndex2, TwoBodyConstraintSettings settings)
      Instantiate an additional constraint.
      Parameters:
      bodyIndex1 - the index of the first body in the list
      bodyIndex2 - the index of the 2nd body in the list
      settings - the constraint settings to use (not null)