Type Function Library physics.* Return value Number Revision Release 2024.3703 Keywords MKS units, physics See also physics.setMKS()
Get the MKS value of the physics simulation for specific keys.
physics.getMKS( key )
String. The key to get MKS units of. Can be any one of the following values:
"velocityThreshold"
— corresponds to b2_velocityThreshold
."timeToSleep"
— corresponds to b2_timeToSleep
."linearSleepTolerance"
— corresponds to b2_linearSleepTolerance
."angularSleepTolerance"
— corresponds to b2_angularSleepTolerance
.local vt_mks = physics.getMKS( "velocityThreshold" )