Interface ConstConstraint

All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Subinterfaces:
ConstTwoBodyConstraint
All Known Implementing Classes:
ConeConstraint, Constraint, ConstraintRef, DistanceConstraint, FixedConstraint, GearConstraint, HingeConstraint, PathConstraint, PointConstraint, PulleyConstraint, RackAndPinionConstraint, SixDofConstraint, SliderConstraint, SwingTwistConstraint, TwoBodyConstraint, TwoBodyConstraintRef, VehicleConstraint

public interface ConstConstraint extends ConstJoltPhysicsObject
Read-only access to a Constraint. (native type: const Constraint)
  • Method Details

    • getConstraintPriority

      int getConstraintPriority()
      Return the constraint's priority when solving. The constraint is unaffected.
      Returns:
      the priority level
    • getConstraintSettings

      ConstraintSettingsRef getConstraintSettings()
      Convert the constraint to a ConstraintSettings object. The constraint is unaffected.
      Returns:
      a new reference to a new settings object
    • getEnabled

      boolean getEnabled()
      Test whether the constraint is enabled. The constraint is unaffected.
      Returns:
      true if enabled, otherwise false
    • getNumPositionStepsOverride

      int getNumPositionStepsOverride()
      Return the override for the number of position iterations used in the solver. The constraint is 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 constraint is unaffected.
      Returns:
      the number of iterations, or 0 to use the default in PhysicsSettings
    • getSubType

      EConstraintSubType getSubType()
      Return the constraint's subtype. The constraint is unaffected.
      Returns:
      an enum value (not null)
    • getType

      EConstraintType getType()
      Return the constraint's type. The constraint is unaffected.
      Returns:
      an enum value (not null)