Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3643 in orxonox.OLD for orxonox/trunk/src/camera.cc


Ignore:
Timestamp:
Mar 23, 2005, 11:20:29 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: better views with Camera

File:
1 edited

Legend:

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

    r3642 r3643  
    104104    case VIEW_NORMAL:
    105105      this->toFovy = 60.0;
    106       this->toRelCoor = Vector (-10, 5, 0);
     106      this->toRelCoor = Vector(-10, 5, 0);
    107107      break;
    108108    case VIEW_BEHIND:
    109       this->toFovy = 90.0;
    110       this->toRelCoor = Vector (-6, 2, 0);
     109      this->toFovy = 120.0;
     110      this->toRelCoor = Vector(-7, 0, 0);
    111111      break;
    112112    case VIEW_FRONT:
    113113      this->toFovy = 95.0;
    114       this->toRelCoor = Vector (10, 5, 0);
     114      this->toRelCoor = Vector(12, 5, 0);
    115115      break;
    116116    case VIEW_LEFT:
    117117      this->toFovy = 90;
    118       this->toRelCoor = Vector (0, 2, -10);
     118      this->toRelCoor = Vector(0, 2, -10);
    119119      break;
    120120    case VIEW_RIGHT:
    121121      this->toFovy = 90;
    122       this->toRelCoor = Vector (0, 2, 10);
     122      this->toRelCoor = Vector(0, 2, 10);
    123123      break;
     124    case VIEW_TOP:
     125      this->toFovy= 120;
     126      this->toRelCoor = Vector(0, 4, 0);
    124127    }
    125128}
     
    132135void Camera::tick(float dt)
    133136{
    134   dt /= 1000;
     137  dt /= 500;
    135138  this->fovy += (this->toFovy - this->fovy) * dt;
    136139  Vector tmp = this->getRelCoor() + (this->toRelCoor - this->getRelCoor()) * dt;
Note: See TracChangeset for help on using the changeset viewer.