Changeset 2394
- Timestamp:
- Dec 10, 2008, 6:02:42 PM (16 years ago)
- Location:
- code/branches/lodfinal/src/orxonox/objects/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lodfinal/src/orxonox/objects/worldentities/Planet.cc
r2388 r2394 37 37 #include "CameraManager.h" 38 38 #include "objects/Scene.h" 39 #include "Camera.h"40 39 #include <math.h> 41 40 … … 72 71 if(!this->isVisible()) 73 72 return; 74 75 Camera* activeCamera= CameraManager::getInstance().getActiveCamera();73 74 if(!activeCamera_) activeCamera_ = CameraManager::getInstance().getActiveCamera(); 76 75 Real distance = this->getPosition().distance( activeCamera->getWorldPosition() ); 77 76 COUT(2) << distance << std::endl; -
code/branches/lodfinal/src/orxonox/objects/worldentities/Planet.h
r2380 r2394 35 35 #include "tools/Mesh.h" 36 36 #include "objects/Tickable.h" 37 #include "Camera.h" 37 38 38 39 namespace orxonox … … 109 110 BillboardSet billboard_; 110 111 bool bCastShadows_; 112 Camera* activeCamera_; 111 113 112 114 };
Note: See TracChangeset
for help on using the changeset viewer.