Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10041 in orxonox.OLD for branches/ai/src/ai/movement_module.cc


Ignore:
Timestamp:
Dec 11, 2006, 11:12:11 PM (17 years ago)
Author:
tfahrni
Message:

Tried to make some progress with the AI..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ai/src/ai/movement_module.cc

    r10029 r10041  
    2727
    2828void 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);
    3041
    3142
     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.