Interface ConstConstraint

All Superinterfaces:
Comparable<ConstJoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
ConeConstraint, Constraint, DistanceConstraint, FixedConstraint, GearConstraint, HingeConstraint, PointConstraint, SixDofConstraint, SliderConstraint, TwoBodyConstraint, 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.
      Returns:
      the priority level
    • getConstraintSettings

      ConstraintSettingsRef getConstraintSettings()
      Convert the constraint to a ConstraintSettings object.
      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)
    • getUserData

      long getUserData()
      Return the constraint's user data: can be used for anything. The constraint is unaffected.
      Returns:
      the value