Jump to content

Meaning of bounding_radius


Recommended Posts

Posted

Hi,

I hope someone can me with this question.

What is the Meaning of bounding_radius

Some facts:

~97% of boundingsradius are lower or equals then 2

bounding radius is use from mangos, but I think nobody knows the ->real<- Meaning

the bounding_radius are direct from offical

There are some mobs with big movement problems because of bounding_radius (Examples: A lot of Golems-Mobs, Maexxna, Supremus, Guardian of Icecrown)

Maybe someone can help mangos with a good answer.

Thank you

  • 2 weeks later...
Posted

I have make a big mistake, it was late and i have change combatreach, but the meaning of combatreach is clear.

I have change me core to thisone. Boundingradius has a max value of 2. I hope that helps against wrong movement


void Unit::UpdateModelData() {
    if (CreatureModelInfo const* modelInfo = sObjectMgr.GetCreatureModelInfo(GetDisplayId()))
    {
        // we expect values in database to be relative to scale = 1.0
        SetFloatValue(UNIT_FIELD_BOUNDINGRADIUS, GetObjectScale() * modelInfo->bounding_radius < 2.0f ? GetObjectScale() * modelInfo->bounding_radius : 2.0f);
         // never actually update combat_reach for player, it's always the same. Below player case is for initialization
        if (GetTypeId() == TYPEID_PLAYER)
            SetFloatValue(UNIT_FIELD_COMBATREACH, 1.5f);
        else             SetFloatValue(UNIT_FIELD_COMBATREACH, GetObjectScale() * modelInfo->combat_reach);
    }
}

  • 2 weeks later...
Posted

uu touching... can u post a patch pls under the underreview subforum ... this is necesary... so it can get to master

do u need a hand on tests?

if yes..tell me what do u need to be tested

Posted

No post in under review because me solution is only a hack for some creature_models, which bouding_radius is bigger than 2. The right meaning of bouding_radius is still unknown.

If someone is interested, copy the code where bounding_radius is limit to 2.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use