Set the sleep angular velocity. When the velocity of a body becomes smaller than the sleep linear/angular velocity for a given amount of time, the body starts sleeping and does not need to be simulated anymore. * @param sleepAngularVelocity The sleep angular velocity (in radian per second) */
| 1000 | * @param sleepAngularVelocity The sleep angular velocity (in radian per second) |
| 1001 | */ |
| 1002 | void PhysicsWorld::setSleepAngularVelocity(decimal sleepAngularVelocity) { |
| 1003 | assert(sleepAngularVelocity >= decimal(0.0)); |
| 1004 | mSleepAngularVelocity = sleepAngularVelocity; |
| 1005 | |
| 1006 | RP3D_LOG(mConfig.worldName, Logger::Level::Information, Logger::Category::World, |
| 1007 | "Physics World: sleepAngularVelocity= " + std::to_string(sleepAngularVelocity), __FILE__, __LINE__); |
| 1008 | } |
| 1009 | |
| 1010 | // Set the time a body is required to stay still before sleeping |
| 1011 | /** |
no outgoing calls
no test coverage detected