Interface ConstPhysicsSettings

All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
PhysicsSettings

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

    • getAllowSleeping

      boolean getAllowSleeping()
      Test whether objects can fall asleep. The settings are unaffected.
      Returns:
      true if sleeping is allowed, otherwise false
    • getBaumgarte

      float getBaumgarte()
      Return the Baumgarte stabilization factor, the fraction of position error that is corrected in each update. The settings are unaffected.
      Returns:
      the factor (≥0, ≤1)
    • getDeterministicSimulation

      boolean getDeterministicSimulation()
      Test whether physics simulation is deterministic. The settings are unaffected.
      Returns:
      true if it is deterministic, otherwise false
    • getNumPositionSteps

      int getNumPositionSteps()
      Return the number of solver position iterations per simulation step. The settings are unaffected.
      Returns:
      the number (≥0)
    • getNumVelocitySteps

      int getNumVelocitySteps()
      Return the number of velocity iterations per simulation step. The settings are unaffected.
      Returns:
      the number (≥0)
    • getPenetrationSlop

      float getPenetrationSlop()
      Return the penetration slop. The settings are unaffected.
      Returns:
      the slop distance (in meters)
    • getPointVelocitySleepThreshold

      float getPointVelocitySleepThreshold()
      Return the point-motion threshold, below which objects can fall asleep. The settings are unaffected.
      Returns:
      the speed threshold (in meters per second, ≥0)
    • getTimeBeforeSleep

      float getTimeBeforeSleep()
      Alter the time interval before an object can fall asleep. The settings are unaffected.
      Returns:
      the interval (in seconds, ≥0)