Package jolt.physics

Class PhysicsSettings

All Implemented Interfaces:
JoltNative

public final class PhysicsSettings extends SegmentedJoltNative
PhysicsSettings relies on preview features of the Java platform:
Programs can only use PhysicsSettings when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
  • Method Details

    • at

      public static PhysicsSettings at(MemorySegmentPREVIEW segment)
    • at

    • of

      public static PhysicsSettings of(SegmentAllocatorPREVIEW alloc)
    • getMaxInFlightBodyPairs

      public int getMaxInFlightBodyPairs()
    • setMaxInFlightBodyPairs

      public void setMaxInFlightBodyPairs(int maxInFlightBodyPairs)
    • getStepListenersBatchSize

      public int getStepListenersBatchSize()
    • setStepListenersBatchSize

      public void setStepListenersBatchSize(int stepListenersBatchSize)
    • getStepListenerBatchesPerJob

      public int getStepListenerBatchesPerJob()
    • setStepListenerBatchesPerJob

      public void setStepListenerBatchesPerJob(int stepListenerBatchesPerJob)
    • getBaumgarte

      public float getBaumgarte()
    • setBaumgarte

      public void setBaumgarte(float baumgarte)
    • getSpeculativeContactDistance

      public float getSpeculativeContactDistance()
    • setSpeculativeContactDistance

      public void setSpeculativeContactDistance(float speculativeContactDistance)
    • getPenetrationSlop

      public float getPenetrationSlop()
    • setPenetrationSlop

      public void setPenetrationSlop(float penetrationSlop)
    • getLinearCastThreshold

      public float getLinearCastThreshold()
    • setLinearCastThreshold

      public void setLinearCastThreshold(float linearCastThreshold)
    • getLinearCastMaxPenetration

      public float getLinearCastMaxPenetration()
    • setLinearCastMaxPenetration

      public void setLinearCastMaxPenetration(float linearCastMaxPenetration)
    • getManifoldToleranceSq

      public float getManifoldToleranceSq()
    • setManifoldToleranceSq

      public void setManifoldToleranceSq(float manifoldToleranceSq)
    • getMaxPenetrationDistance

      public float getMaxPenetrationDistance()
    • setMaxPenetrationDistance

      public void setMaxPenetrationDistance(float maxPenetrationDistance)
    • getBodyPairCacheMaxDeltaPositionSq

      public float getBodyPairCacheMaxDeltaPositionSq()
    • setBodyPairCacheMaxDeltaPositionSq

      public void setBodyPairCacheMaxDeltaPositionSq(float bodyPairCacheMaxDeltaPositionSq)
    • getBodyPairCacheCosMaxDeltaRotationDiv2

      public float getBodyPairCacheCosMaxDeltaRotationDiv2()
    • setBodyPairCacheCosMaxDeltaRotationDiv2

      public void setBodyPairCacheCosMaxDeltaRotationDiv2(float bodyPairCacheCosMaxDeltaRotationDiv2)
    • getContactNormalCosMaxDeltaRotation

      public float getContactNormalCosMaxDeltaRotation()
    • setContactNormalCosMaxDeltaRotation

      public void setContactNormalCosMaxDeltaRotation(float contactNormalCosMaxDeltaRotation)
    • getContactPointPreserveLambdaMaxDistSq

      public float getContactPointPreserveLambdaMaxDistSq()
    • setContactPointPreserveLambdaMaxDistSq

      public void setContactPointPreserveLambdaMaxDistSq(float contactPointPreserveLambdaMaxDistSq)
    • getNumVelocitySteps

      public int getNumVelocitySteps()
    • setNumVelocitySteps

      public void setNumVelocitySteps(int numVelocitySteps)
    • getNumPositionSteps

      public int getNumPositionSteps()
    • setNumPositionSteps

      public void setNumPositionSteps(int numPositionSteps)
    • getMinVelocityForRestitution

      public float getMinVelocityForRestitution()
    • setMinVelocityForRestitution

      public void setMinVelocityForRestitution(float minVelocityForRestitution)
    • getTimeBeforeSleep

      public float getTimeBeforeSleep()
    • setTimeBeforeSleep

      public void setTimeBeforeSleep(float timeBeforeSleep)
    • getPointVelocitySleepThreshold

      public float getPointVelocitySleepThreshold()
    • setPointVelocitySleepThreshold

      public void setPointVelocitySleepThreshold(float pointVelocitySleepThreshold)
    • getConstraintWarmStart

      public boolean getConstraintWarmStart()
    • setConstraintWarmStart

      public void setConstraintWarmStart(boolean constraintWarmStart)
    • getUseBodyPairContactCache

      public boolean getUseBodyPairContactCache()
    • setUseBodyPairContactCache

      public void setUseBodyPairContactCache(boolean useBodyPairContactCache)
    • getUseManifoldReduction

      public boolean getUseManifoldReduction()
    • setUseManifoldReduction

      public void setUseManifoldReduction(boolean useManifoldReduction)
    • getAllowSleeping

      public boolean getAllowSleeping()
    • setAllowSleeping

      public void setAllowSleeping(boolean allowSleeping)
    • getCheckActiveEdges

      public boolean getCheckActiveEdges()
    • setCheckActiveEdges

      public void setCheckActiveEdges(boolean checkActiveEdges)