Changeset 4986 in orxonox.OLD for orxonox/trunk/src/world_entities/npc.cc
- Timestamp:
- Aug 12, 2005, 2:23:40 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/npc.cc
r4984 r4986 47 47 void NPC::tick(float dt) 48 48 { 49 this->shiftCoor((State::getCameraTarget()->getAbsCoor() - this->getAbsCoor()) *dt *10); 49 Vector direction = (State::getCameraTarget()->getAbsCoor() - this->getAbsCoor()); 50 51 //if (directin.len() < 100) 52 this->shiftCoor(direction *dt * 5 * exp(-direction.len()/30.0)); 50 53 51 54 }
Note: See TracChangeset
for help on using the changeset viewer.