Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4986 in orxonox.OLD


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
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/sound/sound_engine.cc

    r4985 r4986  
    348348    while (enumSource)
    349349    {
    350       if (likely(enumSource->getNode()!=NULL))
     350      if (likely(enumSource->getNode() != NULL))
    351351      {
    352352        alSource3f(enumSource->getID(), AL_POSITION,
  • orxonox/trunk/src/story_entities/world.cc

    r4979 r4986  
    440440  {
    441441    WorldEntity* tmp = new NPC();
    442     tmp->setAbsCoor(((float)rand()/RAND_MAX) * 2000, 40+ (float)rand()/RAND_MAX*30, ((float)rand()/RAND_MAX -.5) *500);
     442    tmp->setAbsCoor(((float)rand()/RAND_MAX) * 5000, 50/*+ (float)rand()/RAND_MAX*20*/, ((float)rand()/RAND_MAX -.5) *100);
    443443    this->spawn(tmp);
    444444
  • 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.