Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10473 in orxonox.OLD for trunk/src/world_entities/effects


Ignore:
Timestamp:
Jan 29, 2007, 12:55:48 AM (18 years ago)
Author:
patrick
Message:

more cameara bugs fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/effects/billboard.cc

    r10433 r10473  
    2222#include "glincl.h"
    2323#include "state.h"
    24 
     24#include "cameraman.h"
     25#include "camera.h"
    2526
    2627#include "debug.h"
     
    133134  this->material->select();
    134135
    135   const PNode* camera = State::getCameraNode();  //!< @todo MUST be different
     136  const CameraMan* man = State::getCameraman();
     137  const Camera* camera = man->getCurrentCam(); //!< @todo MUST be different
    136138  Vector cameraPos = camera->getAbsCoor();
    137   Vector cameraTargetPos = State::getCameraTargetNode()->getAbsCoor();
     139  Vector cameraTargetPos = camera->getAbsCoor();
    138140  Vector view = cameraTargetPos - cameraPos;
    139141  Vector up = Vector(0, 1, 0);
Note: See TracChangeset for help on using the changeset viewer.