Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8999 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jul 2, 2006, 6:32:18 AM (19 years ago)
Author:
bensch
Message:

radar: much better sizeing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/elements/glgui_radar.cc

    r8998 r8999  
    108108        if (_centerNode->distance(*it) < this->_range)
    109109        {
    110           this->_dotLists[i].positions.push_back(Vector2D(50, 50) + Vector2D(_centerNode->getAbsCoor().x - (*it)->getAbsCoor().x, _centerNode->getAbsCoor().z - (*it)->getAbsCoor().z)* (this->getSizeX2D() /_range));
     110          this->_dotLists[i].positions.push_back(Vector2D(this->getSizeX2D() / 2.0f, this->getSizeY2D() / 2.0f) + Vector2D(_centerNode->getAbsCoor().x - (*it)->getAbsCoor().x, _centerNode->getAbsCoor().z - (*it)->getAbsCoor().z)* (this->getSizeX2D() / 2.0f /_range));
    111111        }
    112112
Note: See TracChangeset for help on using the changeset viewer.