Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 18, 2013, 1:54:40 PM (10 years ago)
Author:
wroennin
Message:

Math.cc: fixed Transformation; HUDRadar.cc: added transparence setting

File:
1 edited

Legend:

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

    r9779 r9787  
    171171            //Vector2 coord = get2DViewcoordinates(this->owner_->getPosition(), this->owner_->getOrientation() * WorldEntity::FRONT, this->owner_->getOrientation() * WorldEntity::UP, wePointer->getWorldPosition());
    172172            Vector2 coord = get3DProjection(this->owner_->getPosition(), this->owner_->getOrientation() * WorldEntity::FRONT, this->owner_->getOrientation() * WorldEntity::UP, wePointer->getWorldPosition(), 0.6435011, detectionLimit_);
     173            if(coord.y < 0)
     174                {
     175                orxonox::ColourValue color = it->second->getColour();
     176                color.a = 0.5f;
     177                it->second->setColour(color);
     178                }
     179
    173180            coord *= math::pi / 3.5f; // small adjustment to make it fit the texture
    174181            it->second->setPosition((1.0f + coord.x - size) * 0.5f, (1.0f - coord.y - size) * 0.5f);
Note: See TracChangeset for help on using the changeset viewer.