| | 213 | // http://newtondynamics.com/wiki/index.php5?title=NewtonBodySetFreezeTreshold |
| | 214 | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ |
| | 215 | void |
| | 216 | PhysicsActor::setSleepingThresholds(float _minLinearMotion, float _minAngularMotion) |
| | 217 | { |
| | 218 | //we'll stick with a default of 10 frames of motion since it's simpler to track distance/angle for most folks (that, and theres no equivalents in other engines I've found) -BJR |
| | 219 | NewtonBodySetFreezeTreshold(m_pActor,_minLinearMotion,_minAngularMotion, 10); |
| | 220 | } |