Physics.getMKS()
ប្រើសំរាប់បញ្ចូលនៅតំលៃ MKS value របស់ physics simulation សំរាប់ key specifics
Syntax: physics.getMKS (key)
Key(តំរូវការ)វាជា String ដែលជាKey ក្នុងការទទួលនៅ MKS units វាអាចជាះ
"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" )
No comments:
Post a Comment