- Timestamp:
- Nov 29, 2015, 6:36:21 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/WingmanController.cc
r10886 r10888 112 112 if (this->hasTarget()) 113 113 { 114 //----choose where to go----115 114 this->maneuver(); 116 //----fire if you can---- 117 this->bShooting_ = this->canFire(); 115 this->bShooting_ = this->canFire(); 116 // Vector3 healthPosition = bestHealthPickup((this->target_->getWorldPosition() - this->getControllableEntity()->getWorldPosition()).length()); 117 // if ((this->getControllableEntity()->getWorldPosition() - healthPosition).length() < this->tolerance_) 118 // { 119 // //----choose where to go---- 120 // this->maneuver(); 121 // } 122 // else 123 // { 124 // this->dodgeTowards(healthPosition); 125 // } 126 // //----fire if you can---- 127 // this->bShooting_ = this->canFire(); 118 128 } 119 129 }
Note: See TracChangeset
for help on using the changeset viewer.