MCPcopy Create free account
hub / github.com/DanielChappuis/reactphysics3d / setTimeBeforeSleep

Method setTimeBeforeSleep

src/engine/PhysicsWorld.cpp:1014–1020  ·  view source on GitHub ↗

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) */

Source from the content-addressed store, hash-verified

1012 * @param timeBeforeSleep Time a body is required to stay still before sleeping (in seconds)
1013 */
1014void 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/**

Callers 1

updateEngineSettingsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected