Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3643 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc


Ignore:
Timestamp:
Mar 23, 2005, 11:20:29 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better views with Camera

File:
1 edited

Legend:

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

    r3641 r3643  
    305305            this->localCamera->setName ("camera");
    306306            this->localCamera->lookAt(this->localPlayer);
    307             Vector* cameraOffset = new Vector (-2, 2, 0);
    308             this->localCamera->setRelCoor (cameraOffset);
     307            this->localCamera->setParent(this->localPlayer);
    309308           
    310309            /*monitor progress*/
     
    341340
    342341            //localCamera->setParent(TrackNode::getInstance());
    343             tn->addChild (this->localCamera);
     342            tn->addChild(this->localCamera);
     343            //      localCamera->lookAt(tn);
    344344            this->localPlayer->setMode(PNODE_ALL);
    345345            //Vector* cameraOffset = new Vector (0, 5, -10);
     
    858858  else if( !strcmp( cmd->cmd, "view3")) this->localCamera->setViewMode(VIEW_LEFT);
    859859  else if( !strcmp( cmd->cmd, "view4")) this->localCamera->setViewMode(VIEW_RIGHT);
     860  else if( !strcmp( cmd->cmd, "view5")) this->localCamera->setViewMode(VIEW_TOP);
    860861 
    861862  return false;
Note: See TracChangeset for help on using the changeset viewer.