Changeset 8738 for code/trunk/src/modules/overlays/hud
- Timestamp:
- Jul 9, 2011, 7:45:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/overlays/hud/HUDRadar.cc
r8737 r8738 106 106 panel->setMaterialName(TextureGenerator::getMaterialName( 107 107 shapeMaterials_[object->getRadarObjectShape()], object->getRadarObjectColour())); 108 panel->hide(); 108 109 this->radarObjects_[object] = panel; 109 110 } … … 166 167 float distance = (wePointer->getWorldPosition() - this->owner_->getPosition()).length(); 167 168 // 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(); 169 170 it->second->setDimensions(size, size); 170 171
Note: See TracChangeset
for help on using the changeset viewer.