Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4360 in orxonox.OLD


Ignore:
Timestamp:
May 28, 2005, 12:42:17 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: reset function for the camera

Location:
orxonox/trunk/src/subprojects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/subprojects/framework.cc

    r4359 r4360  
    6060 
    6161  camera->apply();
    62       printf("distance: %f\n", (camera->getTarget()->getAbsCoor()-camera->getAbsCoor()).len());
    6362 
    6463  SDL_GL_SwapBuffers(); // Swap the buffers
     
    178177            camera->setRelCoor(camera->getRelCoor() - (camera->getTarget()->getAbsCoor() - camera->getAbsCoor())*.1);
    179178            break;
     179          case SDLK_r:
     180            camera->setAbsCoor(Vector(10, 10, 10));
     181            camera->getTarget()->setAbsCoor(Vector());
     182            break;
    180183          case SDLK_h:
    181184            this->printHelp();
     
    247250  State::getInstance()->setCamera(camera, camera->getTarget());
    248251
    249   camera->setAbsCoor(Vector(10, 10, 0));
     252  camera->setAbsCoor(Vector(10, 10, 10));
    250253}
    251254
     
    265268  PRINT(0)("a - zoom in\n");
    266269  PRINT(0)("z - zoom out\n");
    267 
     270  PRINT(0)("r - reset camera position\n");
     271
     272  PRINT(0)("\n");
     273  PRINT(0)("mouse wheel - zoom\n");
     274  PRINT(0)("mouse left button - rotate the camera around its target\n");
     275  PRINT(0)("mouse right button - rotate the camera's target around the camera\n");
     276  PRINT(0)("mouse left-and-right button - move the camera and the target\n");
     277 
    268278  this->moduleHelp();
    269279
  • orxonox/trunk/src/subprojects/importer/importer.cc

    r4349 r4360  
    7878void Framework::moduleHelp(void) const
    7979{
    80   PRINT(0)("\n");
    81   PRINT(0)("i ");
    82   PRINT(0)("\n");
    83 
     80 
    8481}
Note: See TracChangeset for help on using the changeset viewer.