Changeset 10259 in orxonox.OLD for branches/camera/src/world_entities
- Timestamp:
- Jan 17, 2007, 3:46:05 PM (18 years ago)
- Location:
- branches/camera/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/cameraman.cc
r10257 r10259 19 19 #include "state.h" 20 20 #include "iostream.h" 21 21 #include "sound_engine.h" 22 22 23 23 … … 36 36 this->cameras.push_back(new Camera()); 37 37 cameras[cameras.size()-1]->target->detach(); 38 39 40 38 41 cout << cameras[1]->getAbsCoorX() << "," << cameras[1]->getAbsCoorY() << "," << cameras[1]->getAbsCoorZ() << endl << cameras[1]->target->getAbsCoorX() << endl; 39 42 … … 46 49 currentCam=cameras[cameraNo]; 47 50 State::setCamera(currentCam, currentCam->getTarget()); 51 OrxSound::SoundEngine::getInstance()->setListener(currentCam); 52 48 53 } 49 54 -
branches/camera/src/world_entities/skybox.cc
r9869 r10259 30 30 31 31 #include "debug.h" 32 33 #include "state.h" 34 #include "playable.h" 35 #include "player.h" 32 36 33 37 #include "class_id_DEPRECATED.h" … … 220 224 { 221 225 this->size = size; 226 } 227 228 229 230 void SkyBox::tick(float dt) 231 { 232 PRINTF(0)("tick\n"); 233 234 Player* pl = State::getPlayer(); 235 if( pl == NULL) 236 return; 237 238 Playable* playable = pl->getPlayable(); 239 if( playable == NULL) 240 return; 241 242 if( this->getParent() != playable) 243 this->setParent( playable); 222 244 } 223 245 -
branches/camera/src/world_entities/skybox.h
r9869 r10259 42 42 43 43 virtual void draw(); 44 virtual void tick(float dt); 44 45 45 46 void setSize(float size); -
branches/camera/src/world_entities/test_entity.cc
r10257 r10259 88 88 void TestEntity::t2() 89 89 { 90 CM->moveCurrCam( +600,0, 0);90 CM->moveCurrCam(0, -150, 0); 91 91 92 92 }
Note: See TracChangeset
for help on using the changeset viewer.