Interface ConstConstraintSettings
- All Superinterfaces:
AutoCloseable,Comparable<JoltPhysicsObject>,ConstJoltPhysicsObject,ConstSerializableObject
- All Known Subinterfaces:
ConstVehicleConstraintSettings
- All Known Implementing Classes:
ConeConstraintSettings,ConstraintSettings,DistanceConstraintSettings,FixedConstraintSettings,GearConstraintSettings,HingeConstraintSettings,PathConstraintSettings,PointConstraintSettings,PulleyConstraintSettings,RackAndPinionConstraintSettings,SixDofConstraintSettings,SliderConstraintSettings,SwingTwistConstraintSettings,TwoBodyConstraintSettings,VehicleConstraintSettings,VehicleConstraintSettingsRef
Read-only access to a
ConstraintSettings object. (native type: const
ConstraintSettings)-
Method Summary
Modifier and TypeMethodDescriptionintReturn the constraint's priority when solving.intReturn the constraint's controller type.floatReturn the size of the constraint in debug renders.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.voidsaveBinaryState(StreamOut stream) Save the settings to the specified binary stream.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVaMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObject
getRtti
-
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:
trueif 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
-
saveBinaryState
Save the settings to the specified binary stream. The settings are unaffected.- Parameters:
stream- the stream to write to (not null)
-