Interface ConstConstraintSettings
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
ConeConstraintSettings
,ConstraintSettings
,DistanceConstraintSettings
,FixedConstraintSettings
,GearConstraintSettings
,HingeConstraintSettings
,PathConstraintSettings
,PointConstraintSettings
,PulleyConstraintSettings
,RackAndPinionConstraintSettings
,SixDofConstraintSettings
,SliderConstraintSettings
,SwingTwistConstraintSettings
,TwoBodyConstraintSettings
,VehicleConstraintSettings
Read-only access to a
ConstraintSettings
object. (native type: const
ConstraintSettings)-
Method Summary
Modifier and TypeMethodDescriptionint
Return the constraint's priority when solving.int
Return the constraint's controller type.float
Return the size of the constraint in debug renders.boolean
Test whether the constraint will be enabled initially.int
Return the override for the number of position iterations used in the solver.int
Return the override for the number of velocity iterations used in the solver.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getConstraintPriority
int getConstraintPriority()Return the constraint's priority when solving. The settings are unaffected.- Returns:
- the priority level
-
getControllerType
int getControllerType()Return the constraint's controller type. The settings are unaffected.- Returns:
- a numeric code, such as
VehicleController.motorcycleType
-
getDrawConstraintSize
float getDrawConstraintSize()Return the size of the constraint in debug renders. The settings are unaffected.- Returns:
- the size
-
getEnabled
boolean getEnabled()Test whether the constraint will be enabled initially. The settings are unaffected.- Returns:
true
if enabled, otherwisefalse
-
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 configured in
PhysicsSettings
-