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

public interface ConstConstraintSettings extends ConstJoltPhysicsObject
Read-only access to a ConstraintSettings object. (native type: const ConstraintSettings)
  • 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, 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 configured in PhysicsSettings