Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4986 in orxonox.OLD for orxonox/trunk/src/world_entities/npc.cc


Ignore:
Timestamp:
Aug 12, 2005, 2:23:40 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: moved the camera around, so now you have the sight from within the cockpit on '2'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/npc.cc

    r4984 r4986  
    4747void NPC::tick(float dt)
    4848{
    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));
    5053
    5154}
Note: See TracChangeset for help on using the changeset viewer.