Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 24, 2007, 6:55:21 PM (17 years ago)
Author:
tfahrni
Message:
 
File:
1 edited

Legend:

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

    r10283 r10349  
    5151}
    5252
     53MovementModule::MovementModule(WorldEntity* object)
     54{
     55        this->npc=object;
     56}
    5357
    5458void MovementModule::process(float dt)
     
    7983
    8084        float aMax=maxAccleration;
    81         float vMax=800.0f/myRadius;
    82 
     85        //float vMax=1000.0f/myRadius;
     86        float vMax=maxSpeed;
    8387
    8488        //anti player collision
     
    111115        Vector vectorToDestination=destination-myPosition;
    112116
    113         Vector correction=              playerCollision*50*3
     117        Vector correction=              playerCollision*50*3 *6/myRadius
    114118                                                                +       npcCollision*50*3 *6/myRadius
    115119                                                                +       Vector(0,0,0)
     
    137141        //rotate NPC
    138142        view = movement.cross( Vector(0,1,0) ).getNormalized();
    139         npc->setAbsDirSoft( Quaternion( view, Vector(0,1,0)),3);
     143        npc->setAbsDirSoft( Quaternion( view, Vector(0,1,0)),10/myRadius);
    140144
    141145}
Note: See TracChangeset for help on using the changeset viewer.