Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 2, 2007, 9:47:28 PM (17 years ago)
Author:
tfahrni
Message:

tried some new ideas for swarming and fixed a bug in Vector.h

File:
1 edited

Legend:

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

    r10138 r10158  
    202202        Vector vectorToDestination=destination-myPosition;
    203203
    204         Vector correction=playerCollision*50+npcCollision*50+vectorToDestination+Vector(0,0,0)-myMovement;
     204        Vector correction=              playerCollision*50*3
     205                                                                +       npcCollision*50*3
     206                                                                +       Vector(0,0,0)
     207                                                                +       destinationMovement*2//-myMovement
     208                                                                +       (vectorToDestination-myMovement)*3;
    205209
    206210        correction.y=0;
     
    225229        //myNPC->setAbsDir( Quaternion( view, Vector(0,1,0)));
    226230        myNPC->setAbsDirSoft( Quaternion( view, Vector(0,1,0)),3);
     231        movement=myMovement;
    227232}
    228233
Note: See TracChangeset for help on using the changeset viewer.