Changeset 10041 in orxonox.OLD for branches/ai/src/ai/movement_module.cc
- Timestamp:
- Dec 11, 2006, 11:12:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ai/src/ai/movement_module.cc
r10029 r10041 27 27 28 28 void MovementModule::process() 29 {} 29 { 30 31 //How does the Module know the AITeamMember it belongs to?? 32 33 /*Vector absPosition = this->getAbsCoor(); 34 35 PRINTF(0)(" npc abs coor: %f, %f, %f\n", absPosition.x, absPosition.y, absPosition.z); 36 37 Player* pl = State::getPlayer(); 38 Vector playerAbsPos = pl->getPlayable()->getAbsCoor(); 39 40 PRINTF(0)(" player abs coor: %f, %f, %f\n", playerAbsPos.x, playerAbsPos.y, playerAbsPos.z); 30 41 31 42 43 // intelligent reaction 44 45 Vector distanceVector = playerAbsPos - absPosition; 46 distanceVector.normalize(); 47 48 float speed = 10.0f; 49 50 this->shiftCoor( distanceVector * speed * dt);*/ 51 } 52 53
Note: See TracChangeset
for help on using the changeset viewer.