Interface ConstConstraintSettings
- All Superinterfaces:
Comparable<ConstJoltPhysicsObject>,ConstJoltPhysicsObject
- All Known Implementing Classes:
ConeConstraintSettings,ConstraintSettings,DistanceConstraintSettings,FixedConstraintSettings,GearConstraintSettings,HingeConstraintSettings,PointConstraintSettings,SixDofConstraintSettings,SliderConstraintSettings,TwoBodyConstraintSettings,VehicleConstraintSettings
Read-only access to a
ConstraintSettings object. (native type: const
ConstraintSettings)-
Method Summary
Modifier and TypeMethodDescriptionintReturn the constraint's priority when solving.booleanTest whether the constraint will be enabled initially.intReturn the override for the number of position iterations used in the solver.intReturn the override for the number of velocity iterations used in the solver.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, va
-
Method Details
-
getConstraintPriority
int getConstraintPriority()Return the constraint's priority when solving. The settings are unaffected.- Returns:
- the priority level
-
getEnabled
boolean getEnabled()Test whether the constraint will be enabled initially. The settings are unaffected.- Returns:
- true if enabled, otherwise false
-
getNumPositionStepsOverride
int getNumPositionStepsOverride()Return the override for the number of position iterations used in the solver. The settings are unaffected.- Returns:
- the number of iterations, or 0 to use the default in
PhysicsSettings
-
getNumVelocityStepsOverride
int getNumVelocityStepsOverride()Return the override for the number of velocity iterations used in the solver. The settings are unaffected.- Returns:
- the number of iterations, or 0 to use the default in
PhysicsSettings
-