Total Pageviews

Monday, April 21, 2014

physics.setMKS()

physics.setMKS()
ប្រើក្នុងការបញ្ចូលទៅកាន់ MKS (meters, kilograms and seconds) ជាតំលៃរបស់ physics simulation for specific keys។ វាត្រូវប្រើសំរាប់ថ្នាក់ Advanced – the average developer and project will not require this functions
Syntax: physics.setMKS (key, value)
Key(តំរូវការ) វាជា String ជា Key ត្រូវបញ្ចូលទៅក្នុង MKS units:
velocityThreehold corresponds to b2_velocityThreehold
timeToSleep corresponds to b2_timeToSleep
linearSleepTolerance corresponds to b2_linearSleepTolerance
angularSleepTolerance coorespnds to b2_anglularSleepTolerance
value(តំរូវការ) វាជាចំនួនលេខជាតំលៃសំរាប់រើស the choosen MKS key
សូមមើលកូដះ
Physics.setMKS (“timeToSleep”,10)


No comments:

Post a Comment