Changeset 9787 for code/branches/radarDreiD/src/modules/overlays
- Timestamp:
- Nov 18, 2013, 1:54:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/radarDreiD/src/modules/overlays/hud/HUDRadar.cc
r9779 r9787 171 171 //Vector2 coord = get2DViewcoordinates(this->owner_->getPosition(), this->owner_->getOrientation() * WorldEntity::FRONT, this->owner_->getOrientation() * WorldEntity::UP, wePointer->getWorldPosition()); 172 172 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 173 180 coord *= math::pi / 3.5f; // small adjustment to make it fit the texture 174 181 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.