Set the time a body is required to stay still before sleeping * @param timeBeforeSleep Time a body is required to stay still before sleeping (in seconds) */
| 1012 | * @param timeBeforeSleep Time a body is required to stay still before sleeping (in seconds) |
| 1013 | */ |
| 1014 | void PhysicsWorld::setTimeBeforeSleep(decimal timeBeforeSleep) { |
| 1015 | assert(timeBeforeSleep >= decimal(0.0)); |
| 1016 | mTimeBeforeSleep = timeBeforeSleep; |
| 1017 | |
| 1018 | RP3D_LOG(mConfig.worldName, Logger::Level::Information, Logger::Category::World, |
| 1019 | "Physics World: timeBeforeSleep= " + std::to_string(timeBeforeSleep), __FILE__, __LINE__); |
| 1020 | } |
| 1021 | |
| 1022 | // Enable/Disable the gravity |
| 1023 | /** |
no outgoing calls
no test coverage detected