Changeset 1916 for code/branches/objecthierarchy/src/orxonox/objects
- Timestamp:
- Oct 14, 2008, 12:20:14 AM (16 years ago)
- Location:
- code/branches/objecthierarchy/src/orxonox/objects
- Files:
-
- 22 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/Radar.cc
r1818 r1916 36 36 #include <cfloat> 37 37 #include <cassert> 38 #include "objects/WorldEntity.h"39 #include "objects/SpaceShip.h"40 38 #include "core/CoreIncludes.h" 41 39 #include "core/ConsoleCommand.h" … … 114 112 for (ObjectList<RadarViewable>::iterator itElement = ObjectList<RadarViewable>::begin(); itElement; ++itElement) 115 113 { 114 /* 116 115 if ((*itElement) != SpaceShip::getLocalShip() && (*itListener)->getRadarSensitivity() > (*itElement)->getRadarObjectCamouflage()) 117 116 (*itListener)->displayObject(*itElement, *itElement == this->focus_); 117 */ 118 118 } 119 119 } … … 130 130 else 131 131 { 132 Vector3 localPosition = SpaceShip::getLocalShip()->getPosition();132 Vector3 localPosition;// = SpaceShip::getLocalShip()->getPosition(); 133 133 Vector3 targetPosition = localPosition; 134 134 if (*(this->itFocus_)) … … 143 143 for (ObjectList<RadarViewable>::iterator it = ObjectList<RadarViewable>::begin(); it; ++it) 144 144 { 145 /* 145 146 if (*it == SpaceShip::getLocalShip()) 146 147 continue; 147 148 */ 148 149 float targetDistance = localPosition.squaredDistance((*it)->getWorldPosition()); 149 150 if (targetDistance > currentDistance && targetDistance < nextDistance) -
code/branches/objecthierarchy/src/orxonox/objects/RadarViewable.cc
r1818 r1916 31 31 #include "util/Debug.h" 32 32 #include "core/CoreIncludes.h" 33 #include "objects/WorldEntity.h"33 //#include "objects/WorldEntity.h" 34 34 #include "Radar.h" 35 35 … … 63 63 { 64 64 validate(); 65 return this->radarObject_->getWorldPosition();65 return Vector3::ZERO;//this->radarObject_->getWorldPosition(); 66 66 } 67 67 … … 69 69 { 70 70 validate(); 71 return this->radarObject_->getOrientation() * this->radarObject_->getVelocity();71 return Vector3::ZERO;//this->radarObject_->getOrientation() * this->radarObject_->getVelocity(); 72 72 } 73 73 } -
code/branches/objecthierarchy/src/orxonox/objects/RadarViewable.h
r1818 r1916 44 44 class _OrxonoxExport RadarViewable : virtual public OrxonoxClass 45 45 { 46 class WorldEntity; 47 46 48 public: 47 49 enum Shape
Note: See TracChangeset
for help on using the changeset viewer.