Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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'

Location:
orxonox/trunk/src/world_entities
Files:
4 edited

Legend:

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

    r4838 r4986  
    120120    case VIEW_BEHIND:
    121121      this->toFovy = 120.0;
    122       this->toRelCoor = Vector(-7, 0, 0);
     122      this->toRelCoor = Vector(3.5, 0, 0);
     123      this->target->setRelCoor(4,0,0);
     124/*      this->setParent("main-Turret");
     125      this->setParentMode(PNODE_ALL);
     126      this->target->setParent("Crosshair");*/
    123127      break;
    124128    case VIEW_FRONT:
  • orxonox/trunk/src/world_entities/camera.h

    r4836 r4986  
    5757  float             farClip;         //!< The far clipping plane.
    5858
    59   Vector toRelCoor;                  //!< The relativeCoordinate to move the camera to.
    60   float toFovy;                      //!< The fovy-mode to iterate to.
     59  Vector            toRelCoor;       //!< The relativeCoordinate to move the camera to.
     60  float             toFovy;          //!< The fovy-mode to iterate to.
    6161};
    6262
  • 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}
  • orxonox/trunk/src/world_entities/player.cc

    r4975 r4986  
    9292
    9393  Weapon* turret = new Turret(this->weaponMan);
     94  turret->setName("main-Turret");
    9495  Weapon* turret2 = new Turret(this->weaponMan);
    9596  this->weaponMan->addWeapon(wpLeft, 1, 0);
Note: See TracChangeset for help on using the changeset viewer.