Changeset 4293 in orxonox.OLD for orxonox/branches/physics/src/lib
- Timestamp:
- May 26, 2005, 10:34:14 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/physics/src/lib/graphics/particles/particle_system.cc
r4193 r4293 20 20 #include "particle_emitter.h" 21 21 #include "particle_engine.h" 22 23 #include "field.h" 24 22 25 #include "compiler.h" 23 26 #include "material.h" 24 25 #include "field.h" 27 #include "state.h" 28 26 29 27 30 // needed to find the Position of the Camera 28 31 #include "world.h" 29 #include "camera.h"30 32 31 33 using namespace std; … … 337 339 //! \todo implement a faster code for the look-at Camera algorithm. 338 340 339 Camera* camera = WorldInterface::getInstance()->getCurrentWorld()->getLocalCamera(); //!< \todo MUST be different341 const PNode* camera = State::getInstance()->getCamera(); //!< \todo MUST be different 340 342 Vector cameraPos = camera->getAbsCoor(); 341 Vector cameraTargetPos = camera->getTarget()->getAbsCoor();343 Vector cameraTargetPos = State::getInstance()->getCameraTarget()->getAbsCoor(); 342 344 Vector view = cameraTargetPos - cameraPos; 343 345 Vector up = Vector(0, 1, 0);
Note: See TracChangeset
for help on using the changeset viewer.