src/body/RigidBody.cpp
void RigidBody::enableGravity(bool isEnabled) {
    mWorld.mRigidBodyComponents.setIsGravityEnabled(mEntity, isEnabled);

    RP3D_LOG(mWorld.mConfig.worldName, Logger::Level::Information, Logger::Category::Body,
             "Body " + std::to_string(mEntity.id) + ": Set isGravityEnabled=" +
             (isEnabled ? "true" : "false"),  __FILE__, __LINE__);
}
// Set the variable to know if the gravity is applied to this rigid body
/**
 * @param isEnabled True if you want the gravity to be applied to this body
 */
Set the variable to know if the gravity is applied to this rigid body
@param isEnabled True if you want the gravity to be applied to this body
Set the variable to know if the gravity is applied to this rigid body @param isEnabled True if you want the gravity to be applied to this body
void RigidBody::enableGravity(bool isEnabled) {
    mWorld.mRigidBodyComponents.setIsGravityEnabled(mEntity, isEnabled);
    RP3D_LOG(mWorld.mConfig.worldName, Logger::Level::Information, Logger::Category::Body,
             "Body " + std::to_string(mEntity.id) + ": Set isGravityEnabled=" +
             (isEnabled ? "true" : "false"),  __FILE__, __LINE__);
}
void RigidBody :: enableGravity ( bool isEnabled ) { mWorld . mRigidBodyComponents . setIsGravityEnabled ( mEntity , isEnabled ) ; RP3D_LOG ( mWorld . mConfig . worldName , Logger :: Level :: Information , Logger :: Category :: Body , " " + std :: to_string ( mEntity . id ) + " " + ( isEnabled ? " " : " " ) , __FILE__ , __LINE__ ) ; }
Set the variable to know if the gravity is applied to this rigid body
 @param isEnabled True if you want the gravity to be applied to this body
Set the variable to know if the gravity is applied to this rigid body @param isEnabled True if you want the gravity to be applied to this body