Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 21, 2011, 6:07:00 PM (13 years ago)
Author:
jo
Message:

That was no English :-). Now worldentities can be identified and added as waypoints by string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ai2/src/orxonox/controllers/ArtificialController.cc

    r8769 r8770  
    11661166            {
    11671167                //get POI by string: Possible POIs are PICKUPSPAWNER, FORCEFIELDS (!analyse!), ...
    1168                 //if(it->isA(Pickupable)) //distance to POI decides wether it is added (neither too close nor too far away)
    1169                 //To Think: how should POI's be managed? (e.g. if there are no real moving target or if the can be taken "en passant".)
     1168                //distance to POI decides wether it is added (neither too close nor too far away)
     1169                //How should POI's be managed? (e.g. Look for POIs if there are no real targets to move to or if they can be taken "en passant".)
    11701170                   waypoint = *it;
     1171                   if(waypoint->getIdentifier() == ClassByString(name))
     1172                   {//TODO: check distance,
     1173                       // PickupSpawner: adjust waypoint accuracy to PickupSpawner's triggerdistance
     1174                       // ForceField: analyze is angle between forcefield boost and own flying direction is acceptable
     1175                       break;
     1176                   }
     1177
    11711178                /*const Vector3 realDistance = it->getPosition() - this->getControllableEntity()->getPosition();
    11721179                if( realDistance.length() < distance)
Note: See TracChangeset for help on using the changeset viewer.