Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5683 in orxonox.OLD for branches/world_entities


Ignore:
Timestamp:
Nov 21, 2005, 10:28:42 PM (19 years ago)
Author:
bensch
Message:

orxonox/world_entities: npc-clean

Location:
branches/world_entities/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/world_entities/src/world_entities/npc.cc

    r5621 r5683  
    3434  this->setClassID(CL_NPC, "NPC");
    3535
    36   if ((float)rand()/RAND_MAX > .5f)
    37     this->loadModel("models/ships/bolido.obj", 2);
    38   else
    39     this->loadModel("models/ships/gobblin.obj", 2);
    40 
    41   this->randomRotAxis =  VECTOR_RAND(1);
    4236}
    4337
     
    8074void NPC::tick(float dt)
    8175{
    82 //  Vector direction = (State::getCameraTarget()->getAbsCoor() - this->getAbsCoor());
    83 
    84   //if (directin.len() < 100)
    85 //  this->shiftCoor(direction *dt * 5 * exp(-direction.len() / 30.0));
    86   this->shiftDir(Quaternion(dt, this->randomRotAxis));
    8776
    8877}
  • branches/world_entities/src/world_entities/npc.h

    r5451 r5683  
    2323
    2424 private:
    25    Vector   randomRotAxis;
    2625
    2726   WorldEntity* collider;
Note: See TracChangeset for help on using the changeset viewer.