Package com.github.stephengold.joltjni
Class AdditionalConstraint
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.AdditionalConstraint
- All Implemented Interfaces:
ConstJoltPhysicsObject
,AutoCloseable
,Comparable<JoltPhysicsObject>
Specify an additional constraint for use in a ragdoll. (native type:
RagdollSettings::AdditionalConstraint
)-
Constructor Summary
ConstructorsConstructorDescriptionAdditionalConstraint
(int bodyIndex1, int bodyIndex2, TwoBodyConstraintSettings settings) Instantiate an additional constraint. -
Method Summary
Methods inherited from class com.github.stephengold.joltjni.JoltPhysicsObject
close, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, va
-
Constructor Details
-
AdditionalConstraint
Instantiate an additional constraint.- Parameters:
bodyIndex1
- the index of the first body in the listbodyIndex2
- the index of the 2nd body in the listsettings
- the constraint settings to use (not null)
-