Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 9, 2011, 7:45:14 PM (13 years ago)
Author:
landauf
Message:

added "scale" for radar viewables. scale is relative, 1.0 means "normal".
rocket and simple rocket are now visible on the radar as small triangles.
greatly reduced lifetime of simple rocket.
fixed another possible cause for flashing hud radar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/overlays/hud/HUDRadar.cc

    r8737 r8738  
    106106        panel->setMaterialName(TextureGenerator::getMaterialName(
    107107            shapeMaterials_[object->getRadarObjectShape()], object->getRadarObjectColour()));
     108        panel->hide();
    108109        this->radarObjects_[object] = panel;
    109110    }
     
    166167            float distance = (wePointer->getWorldPosition() - this->owner_->getPosition()).length();
    167168            // calculate the size with 1/distance dependency for simplicity (instead of exp(-distance * lambda)
    168             float size = maximumDotSize_ * halfDotSizeDistance_ / (halfDotSizeDistance_ + distance);
     169            float size = maximumDotSize_ * halfDotSizeDistance_ / (halfDotSizeDistance_ + distance) * it->first->getRadarObjectScale();
    169170            it->second->setDimensions(size, size);
    170171
Note: See TracChangeset for help on using the changeset viewer.