Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 1, 2015, 2:17:08 PM (10 years ago)
Author:
landauf
Message:

details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/controllers/FormationController.cc

    r9800 r10290  
    678678               (*it)->state_=FREE;
    679679               (*it)->forceFreedom();
    680                (*it)->target_=originator;
     680               (*it)->setTarget(originator);
    681681           }
    682682           i++;
     
    935935                        < this->targetPosition_.squaredDistance(this->getControllableEntity()->getPosition()) * (1.5f + acos((this->getControllableEntity()->getOrientation() * WorldEntity::FRONT).dotProduct(distanceCurrent) / speed / distanceCurrent.length()) / math::twoPi) + rnd(-250, 250))
    936936                {
    937                     this->target_ = (*it);
    938                     this->targetPosition_ = it->getPosition();
     937                    this->setTarget(*it);
    939938                }
    940939            }
Note: See TracChangeset for help on using the changeset viewer.