Changeset 3637 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Mar 23, 2005, 12:58:24 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r3635 r3637 305 305 this->localCamera->setName ("camera"); 306 306 this->localCamera->lookAt(this->localPlayer); 307 307 Vector* cameraOffset = new Vector (-2, 2, 0); 308 this->localCamera->setRelCoor (cameraOffset); 309 this->localCamera->setFovy(100); 310 308 311 /*monitor progress*/ 309 312 this->glmis->step(); … … 342 345 this->localPlayer->setMode(PNODE_ALL); 343 346 //Vector* cameraOffset = new Vector (0, 5, -10); 344 Vector* cameraOffset = new Vector (-10, 5, 0);345 this->localCamera->setRelCoor (cameraOffset);346 347 trackManager->condition(2, LEFTRIGHT, this->localPlayer); 347 348 … … 369 370 this->localCamera = new Camera (); 370 371 this->localCamera->setName ("camera"); 371 this->localCamera->lookAt(this->localPlayer); 372 this->localPlayer->addChild (this->localCamera); 372 this->localCamera->lookAt(LightManager::getInstance()->getLight(0)); 373 this->localCamera->setParent(this->localPlayer); 374 Vector* cameraOffset = new Vector (-10, 5, 0); 375 this->localCamera->setRelCoor (cameraOffset); 373 376 374 377 // Create SkySphere
Note: See TracChangeset
for help on using the changeset viewer.