Type Function Library physics.* Return value Number Revision 2017.3060 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" )