Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3635 in orxonox.OLD for orxonox/trunk/src/story_entities


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

orxonox/trunk: reimplemented the Camera.
Camera is now a PNode and not a WorldEntity. I have taken out all the unnecessary stuff like ELLIPTIC_CAMERA and so on, and now it is more like it should be in the new Framework

File:
1 edited

Legend:

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

    r3634 r3635  
    302302           
    303303            // bind camera
    304             this->localCamera = new Camera(this);
     304            this->localCamera = new Camera();
    305305            this->localCamera->setName ("camera");
    306             this->localCamera->bind (this->localPlayer);
     306            this->localCamera->lookAt(this->localPlayer);
     307
    307308            /*monitor progress*/
    308309            this->glmis->step();           
     
    366367           
    367368            // bind camera
    368             this->localCamera = new Camera (this);
     369            this->localCamera = new Camera ();
    369370            this->localCamera->setName ("camera");
    370             this->localCamera->bind (myPlayer);
     371            this->localCamera->lookAt(this->localPlayer);
    371372            this->localPlayer->addChild (this->localCamera);
    372373
     
    749750     
    750751      /* update tick the rest */
    751       this->localCamera->tick(dt);
    752752      this->trackManager->tick(dt);
    753753    }
Note: See TracChangeset for help on using the changeset viewer.