Changeset 9161 for code/branches/newlevel2012/src/orxonox
- Timestamp:
- May 4, 2012, 4:19:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/newlevel2012/src/orxonox/controllers/WaypointController.cc
r9154 r9161 65 65 return; 66 66 67 // orxout() << "(" << this->waypoints_.size() << ") entity: " << this->getControllableEntity() << endl;68 67 69 68 if (this->waypoints_.size() == 0 || !this->getControllableEntity()) 70 69 return; 71 70 72 // printf("3");73 71 74 72 if (this->waypoints_[this->currentWaypoint_]->getWorldPosition().squaredDistance(this->getControllableEntity()->getPosition()) <= this->squaredaccuracy_) 75 73 this->currentWaypoint_ = (this->currentWaypoint_ + 1) % this->waypoints_.size(); 76 74 77 // printf("4");78 75 79 76 this->moveToPosition(this->waypoints_[this->currentWaypoint_]->getWorldPosition());
Note: See TracChangeset
for help on using the changeset viewer.