类型 函数 库 physics.* 返回值 数字 修订 版本 2024.3703 关键词 MKS 单位,物理 另请参阅 physics.setMKS()
获取特定键的物理模拟的 MKS 值。
physics.getMKS( key )
字符串. 要获取其 MKS 单位的键。可以是以下任意值
"velocityThreshold"
— 对应于 b2_velocityThreshold
。"timeToSleep"
— 对应于 b2_timeToSleep
。"linearSleepTolerance"
— 对应于 b2_linearSleepTolerance
。"angularSleepTolerance"
— 对应于 b2_angularSleepTolerance
。local vt_mks = physics.getMKS( "velocityThreshold" )