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

Method setSleepAngularVelocity

src/engine/PhysicsWorld.cpp:1002–1008  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1000 * @param sleepAngularVelocity The sleep angular velocity (in radian per second)
1001 */
1002void 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/**

Callers 1

updateEngineSettingsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected