Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2015, 6:36:21 PM (8 years ago)
Author:
gania
Message:

started working on pickups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/WingmanController.cc

    r10886 r10888  
    112112                if (this->hasTarget())
    113113                {
    114                     //----choose where to go----
    115114                    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();               
    118128                }
    119129            }
Note: See TracChangeset for help on using the changeset viewer.