Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3637 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Mar 23, 2005, 12:58:24 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: hyperZOOM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r3635 r3637  
    305305            this->localCamera->setName ("camera");
    306306            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           
    308311            /*monitor progress*/
    309312            this->glmis->step();           
     
    342345            this->localPlayer->setMode(PNODE_ALL);
    343346            //Vector* cameraOffset = new Vector (0, 5, -10);
    344             Vector* cameraOffset = new Vector (-10, 5, 0);
    345             this->localCamera->setRelCoor (cameraOffset);
    346347            trackManager->condition(2, LEFTRIGHT, this->localPlayer);
    347348
     
    369370            this->localCamera = new Camera ();
    370371            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);
    373376
    374377            // Create SkySphere
Note: See TracChangeset for help on using the changeset viewer.