- Timestamp:
- Dec 14, 2008, 3:53:05 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/Radar.cc
r2361 r2438 134 134 Vector3 targetPosition = localPosition; 135 135 if (*(this->itFocus_)) 136 targetPosition = this->itFocus_->get WorldPosition();136 targetPosition = this->itFocus_->getRVWorldPosition(); 137 137 138 138 // find the closed object further away than targetPosition … … 147 147 continue; 148 148 149 float targetDistance = localPosition.squaredDistance((*it)->get WorldPosition());149 float targetDistance = localPosition.squaredDistance((*it)->getRVWorldPosition()); 150 150 if (targetDistance > currentDistance && targetDistance < nextDistance) 151 151 { … … 187 187 for (ObjectList<RadarViewable>::iterator it = ObjectList<RadarViewable>::begin(); it; ++it, ++i) 188 188 { 189 COUT(3) << i++ << ": " << (*it)->get WorldPosition() << std::endl;189 COUT(3) << i++ << ": " << (*it)->getRVWorldPosition() << std::endl; 190 190 } 191 191 }
Note: See TracChangeset
for help on using the changeset viewer.