Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3039 in orxonox.OLD for orxonox/branches/bezierTrack/src/camera.cc


Ignore:
Timestamp:
Dec 1, 2004, 12:55:12 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/bezierTrack: camera Has A and not Is A Coordinate: Patrick, I finally got what you ment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/bezierTrack/src/camera.cc

    r3028 r3039  
    3030{
    3131  this->world = world;
     32  coord = new Coordinate();
     33
    3234  bound = NULL;
    3335  /* give it some physical live */
     
    8587
    8688    case NORMAL:
    87       this->setPosition(world->track->getPos() - world->track->getDir() *10 +Vector (0,0,5), WORLD);
    88       target->setPosition(world->track->getPos(), WORLD);
     89      coord->setPosition(world->track->getPos() - world->track->getDir() *10 +Vector (0,0,5), WORLD);
     90      target->coord->setPosition(world->track->getPos(), WORLD);
    8991
    9092      Location lookat;
     
    119121  // ===== first camera control calculation option
    120122  // rotation
    121   Vector eye = this->getPosition(WORLD);
    122   Vector targetV = target->getPosition(WORLD);
     123  Vector eye = coord->getPosition(WORLD);
     124  Vector targetV = target->coord->getPosition(WORLD);
    123125
    124126  gluLookAt (eye.x, eye.y, eye.z,
     
    195197CameraTarget::CameraTarget ()
    196198{
    197  
     199  coord = new Coordinate();
    198200
    199201}
     
    201203CameraTarget::CameraTarget (Vector pos)
    202204{
    203   this->setPosition (pos, WORLD);
    204 }
     205  coord->setPosition (pos, WORLD);
     206}
Note: See TracChangeset for help on using the changeset viewer.