Interface ConstPhysicsSettings
- All Superinterfaces:
Comparable<JoltPhysicsObject>
,ConstJoltPhysicsObject
- All Known Implementing Classes:
PhysicsSettings
Read-only access to a
PhysicsSettings
object. (native type: const
PhysicsSettings)-
Method Summary
Modifier and TypeMethodDescriptionboolean
Test whether objects can fall asleep.float
Return the Baumgarte stabilization factor, the fraction of position error that is corrected in each update.boolean
Test whether physics simulation is deterministic.int
Return the number of solver position iterations per simulation step.int
Return the number of velocity iterations per simulation step.float
Return the penetration slop.float
Return the point-motion threshold, below which objects can fall asleep.float
Alter the time interval before an object can fall asleep.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObject
close, hasAssignedNativeObject, ownsNativeObject, targetVa
-
Method Details
-
getAllowSleeping
boolean getAllowSleeping()Test whether objects can fall asleep. The settings are unaffected.- Returns:
true
if sleeping is allowed, otherwisefalse
-
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, otherwisefalse
-
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)
-