src/body/RigidBody.cpp
void RigidBody::setAngularDamping(decimal angularDamping) {
    assert(angularDamping >= decimal(0.0));

    if (angularDamping >= decimal(0.0)) {

        mWorld.mRigidBodyComponents.setAngularDamping(mEntity, angularDamping);

        RP3D_LOG(mWorld.mConfig.worldName, Logger::Level::Information, Logger::Category::Body,
                 "Body " + std::to_string(mEntity.id) + ": Set angularDamping=" + std::to_string(angularDamping),  __FILE__, __LINE__);
    }
    else {
        RP3D_LOG(mWorld.mConfig.worldName, Logger::Level::Error, Logger::Category::Body,
                 "Error when setting the angular damping of body " + std::to_string(mEntity.id) + ": angular damping cannot be negative",  __FILE__, __LINE__);
    }
}
// Set the angular damping factor.
/**
 * @param angularDamping The angular damping factor of this body (in range [0; +inf]). Zero means no damping.
 */
Set the angular damping factor.
@param angularDamping The angular damping factor of this body (in range [0; +inf]). Zero means no damping.
Set the angular damping factor . @param angularDamping The angular damping factor of this body ( in range [ 0 ; + inf ] ) . Zero means no damping .
void RigidBody::setAngularDamping(decimal angularDamping) {
    assert(angularDamping >= decimal(0.0));
    if (angularDamping >= decimal(0.0)) {
        mWorld.mRigidBodyComponents.setAngularDamping(mEntity, angularDamping);
        RP3D_LOG(mWorld.mConfig.worldName, Logger::Level::Information, Logger::Category::Body,
                 "Body " + std::to_string(mEntity.id) + ": Set angularDamping=" + std::to_string(angularDamping),  __FILE__, __LINE__);
    }
    else {
        RP3D_LOG(mWorld.mConfig.worldName, Logger::Level::Error, Logger::Category::Body,
                 "Error when setting the angular damping of body " + std::to_string(mEntity.id) + ": angular damping cannot be negative",  __FILE__, __LINE__);
    }
}
void RigidBody :: setAngularDamping ( decimal angularDamping ) { assert ( angularDamping >= decimal ( 0.0 ) ) ; if ( angularDamping >= decimal ( 0.0 ) ) { mWorld . mRigidBodyComponents . setAngularDamping ( mEntity , angularDamping ) ; RP3D_LOG ( mWorld . mConfig . worldName , Logger :: Level :: Information , Logger :: Category :: Body , " " + std :: to_string ( mEntity . id ) + " " + std :: to_string ( angularDamping ) , __FILE__ , __LINE__ ) ; } else { RP3D_LOG ( mWorld . mConfig . worldName , Logger :: Level :: Error , Logger :: Category :: Body , " " + std :: to_string ( mEntity . id ) + " " , __FILE__ , __LINE__ ) ; } }
Set the angular damping factor.
Set the angular damping factor .