src/body/RigidBody.cpp
void RigidBody::setIsAllowedToSleep(bool isAllowedToSleep) {

    mWorld.mRigidBodyComponents.setIsAllowedToSleep(mEntity, isAllowedToSleep);

    if (!isAllowedToSleep) setIsSleeping(false);

    RP3D_LOG(mWorld.mConfig.worldName, Logger::Level::Information, Logger::Category::Body,
             "Body " + std::to_string(mEntity.id) + ": Set isAllowedToSleep=" +
             (isAllowedToSleep ? "true" : "false"),  __FILE__, __LINE__);
}
// Set whether or not the body is allowed to go to sleep
/**
 * @param isAllowedToSleep True if the body is allowed to sleep
 */
Set whether or not the body is allowed to go to sleep
@param isAllowedToSleep True if the body is allowed to sleep
Set whether or not the body is allowed to go to sleep @param isAllowedToSleep True if the body is allowed to sleep
void RigidBody::setIsAllowedToSleep(bool isAllowedToSleep) {
    mWorld.mRigidBodyComponents.setIsAllowedToSleep(mEntity, isAllowedToSleep);
    if (!isAllowedToSleep) setIsSleeping(false);
    RP3D_LOG(mWorld.mConfig.worldName, Logger::Level::Information, Logger::Category::Body,
             "Body " + std::to_string(mEntity.id) + ": Set isAllowedToSleep=" +
             (isAllowedToSleep ? "true" : "false"),  __FILE__, __LINE__);
}
void RigidBody :: setIsAllowedToSleep ( bool isAllowedToSleep ) { mWorld . mRigidBodyComponents . setIsAllowedToSleep ( mEntity , isAllowedToSleep ) ; if ( ! isAllowedToSleep ) setIsSleeping ( false ) ; RP3D_LOG ( mWorld . mConfig . worldName , Logger :: Level :: Information , Logger :: Category :: Body , " " + std :: to_string ( mEntity . id ) + " " + ( isAllowedToSleep ? " " : " " ) , __FILE__ , __LINE__ ) ; }
Set whether or not the body is allowed to go to sleep
 @param isAllowedToSleep True if the body is allowed to sleep
Set whether or not the body is allowed to go to sleep @param isAllowedToSleep True if the body is allowed to sleep