Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10389 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jan 26, 2007, 6:42:44 PM (18 years ago)
Author:
bknecht
Message:

made the camera able to follow a track

File:
1 edited

Legend:

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

    r10388 r10389  
    2222#include "vector.h"
    2323#include "targets.h"
     24#include "track/track.h"
    2425#include "script_class.h"
    2526
     
    9293  this->setParentMode(PNODE_ALL);
    9394  this->eventHandling = true;
     95 
     96  //add to track
     97  if(this->entityTrack)
     98    this->setParent(this->entityTrack->getTrackNode());
    9499}
    95100
     
    208213  if (fabsf(tmpFovy) > 0.01)
    209214    this->fovy += tmpFovy * fabsf(dt);
     215   
     216  if(this->entityTrack)
     217    this->entityTrack->tick(dt);
    210218
    211219
Note: See TracChangeset for help on using the changeset viewer.