Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4293 in orxonox.OLD for orxonox/branches/physics/src/lib


Ignore:
Timestamp:
May 26, 2005, 10:34:14 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/physics: intoducing state: stors the Camera position globally somewhere we have to store this data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/lib/graphics/particles/particle_system.cc

    r4193 r4293  
    2020#include "particle_emitter.h"
    2121#include "particle_engine.h"
     22
     23#include "field.h"
     24
    2225#include "compiler.h"
    2326#include "material.h"
    24 
    25 #include "field.h"
     27#include "state.h"
     28
    2629
    2730// needed to find the Position of the Camera
    2831#include "world.h"
    29 #include "camera.h"
    3032
    3133using namespace std;
     
    337339          //! \todo implement a faster code for the look-at Camera algorithm.
    338340
    339           Camera* camera = WorldInterface::getInstance()->getCurrentWorld()->getLocalCamera();  //!< \todo MUST be different
     341          const PNode* camera = State::getInstance()->getCamera();  //!< \todo MUST be different
    340342          Vector cameraPos = camera->getAbsCoor();
    341           Vector cameraTargetPos = camera->getTarget()->getAbsCoor();
     343          Vector cameraTargetPos = State::getInstance()->getCameraTarget()->getAbsCoor();
    342344          Vector view = cameraTargetPos - cameraPos;
    343345          Vector up = Vector(0, 1, 0);
Note: See TracChangeset for help on using the changeset viewer.