Changeset 2402
- Timestamp:
- Dec 10, 2008, 11:24:15 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
r2395 r2402 37 37 #include "CameraManager.h" 38 38 #include "objects/Scene.h" 39 #include "Camera.h" 39 40 #include <math.h> 40 41 … … 71 72 if(!this->isVisible()) 72 73 return; 73 74 if(!activeCamera_) activeCamera_= CameraManager::getInstance().getActiveCamera();75 Real distance = this->getPosition().distance( activeCamera_->getWorldPosition() );74 75 Camera* activeCamera = CameraManager::getInstance().getActiveCamera(); 76 Real distance = this->getPosition().distance( activeCamera->getWorldPosition() ); 76 77 COUT(2) << distance << std::endl; 77 78 Real planetRadius = this->getScale(); -
code/branches/lodfinal/src/orxonox/objects/worldentities/Planet.h
r2394 r2402 35 35 #include "tools/Mesh.h" 36 36 #include "objects/Tickable.h" 37 #include "Camera.h"38 37 39 38 namespace orxonox … … 110 109 BillboardSet billboard_; 111 110 bool bCastShadows_; 112 Camera* activeCamera_;113 111 114 112 };
Note: See TracChangeset
for help on using the changeset viewer.