- Timestamp:
 - Nov 21, 2005, 10:28:42 PM (20 years ago)
 - Location:
 - branches/world_entities/src/world_entities
 - Files:
 - 
          
- 2 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
branches/world_entities/src/world_entities/npc.cc
r5621 r5683 34 34 this->setClassID(CL_NPC, "NPC"); 35 35 36 if ((float)rand()/RAND_MAX > .5f)37 this->loadModel("models/ships/bolido.obj", 2);38 else39 this->loadModel("models/ships/gobblin.obj", 2);40 41 this->randomRotAxis = VECTOR_RAND(1);42 36 } 43 37 … … 80 74 void NPC::tick(float dt) 81 75 { 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));87 76 88 77 }  - 
        
branches/world_entities/src/world_entities/npc.h
r5451 r5683 23 23 24 24 private: 25 Vector randomRotAxis;26 25 27 26 WorldEntity* collider;  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






