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

Method setIsGravityEnabled

src/engine/PhysicsWorld.cpp:1027–1032  ·  view source on GitHub ↗

Enable/Disable the gravity * @param isGravityEnabled True if you want to enable the gravity in the world * and false otherwise */

Source from the content-addressed store, hash-verified

1025 * and false otherwise
1026 */
1027void PhysicsWorld::setIsGravityEnabled(bool isGravityEnabled) {
1028 mIsGravityEnabled = isGravityEnabled;
1029
1030 RP3D_LOG(mConfig.worldName, Logger::Level::Information, Logger::Category::World,
1031 "Physics World: isGravityEnabled= " + (isGravityEnabled ? std::string("true") : std::string("false")), __FILE__, __LINE__);
1032}
1033
1034// Return a constant pointer to a given RigidBody of the world
1035/**

Callers 2

enableGravityMethod · 0.45
updateEngineSettingsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected