Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3640 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
Mar 23, 2005, 1:42:46 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: now you can change viewpoint by using key {0..4}

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/orxonox.conf

    r3586 r3640  
    1313x=up_world
    1414z=down_world
    15 
     151=view0
     162=view1
     173=view2
     184=view3
     195=view4
  • orxonox/trunk/src/story_entities/world.cc

    r3639 r3640  
    854854bool World::command(Command* cmd)
    855855{
     856  if( !strcmp( cmd->cmd, "view0")) this->localCamera->setViewMode(VIEW_NORMAL);
     857  else if( !strcmp( cmd->cmd, "view1")) this->localCamera->setViewMode(VIEW_BEHIND);
     858  else if( !strcmp( cmd->cmd, "view2")) this->localCamera->setViewMode(VIEW_FRONT);
     859  else if( !strcmp( cmd->cmd, "view3")) this->localCamera->setViewMode(VIEW_LEFT);
     860  else if( !strcmp( cmd->cmd, "view4")) this->localCamera->setViewMode(VIEW_RIGHT);
     861 
    856862  return false;
    857863}
Note: See TracChangeset for help on using the changeset viewer.