Changeset 6004 in orxonox.OLD for trunk/src/world_entities/npcs/npc_test1.cc
- Timestamp:
- Dec 9, 2005, 11:12:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/npc_test1.cc
r5750 r6004 32 32 NPCTest1::NPCTest1() 33 33 { 34 this->setClassID(CL_NPC , "NPCTest1");34 this->setClassID(CL_NPC_TEST1, "NPCTest1"); 35 35 36 36 if ((float)rand()/RAND_MAX > .5f) … … 39 39 this->loadModel("models/ships/gobblin.obj", 2); 40 40 41 this->randomRotAxis = VECTOR_RAND(1) ;41 this->randomRotAxis = VECTOR_RAND(1).getNormalized(); 42 42 } 43 43 … … 80 80 void NPCTest1::tick(float dt) 81 81 { 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 82 this->shiftDir(Quaternion(dt, this->randomRotAxis)); 87 88 83 } 89 84
Note: See TracChangeset
for help on using the changeset viewer.