Changeset 10615 in orxonox.OLD for branches/cleanup/src/ai/swarm_wait.cc
- Timestamp:
- Mar 30, 2007, 12:01:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cleanup/src/ai/swarm_wait.cc
r10555 r10615 19 19 void SwarmWait::process(float dt) 20 20 { 21 if(taskRelObject!=NULL){ 22 Vector distVect=taskRelObject->getAbsCoor()-getSwarmPosition(); 23 float distance=distVect.len(); 24 if(distance<attackDistance+100)taskComplete=true; //### change wakeup distance here 21 if(taskRelObjectName!=""){ 22 WorldEntity* taskRelObject = dynamic_cast<WorldEntity*>(WorldEntity::objectList().getBaseObject( taskRelObjectName )); 23 Vector distVect=taskRelObject->getAbsCoor()-getSwarmPosition(); 24 float distance=distVect.len(); 25 if(distance<attackDistance+100)taskComplete=true; //### change wakeup distance here 25 26 } 26 27
Note: See TracChangeset
for help on using the changeset viewer.