Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 512 for code


Ignore:
Timestamp:
Dec 13, 2007, 3:56:28 PM (17 years ago)
Author:
nicolasc
Message:
  • some minor check fix in steering
  • added template inputmanager from ogrewiki — currently unused
Location:
code/branches/FICN/src/orxonox
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/CMakeLists.txt

    r482 r512  
    1616  main.cc
    1717  graphicsEngine.cc
     18  InputManager.cc
    1819)
    1920
  • code/branches/FICN/src/orxonox/orxonox.cc

    r511 r512  
    122122
    123123        if(moved) {
    124           if (mouseY<0)
     124          if (mouseY<=0)
    125125            steering->rotateUp(-mouseY*rotate);
    126126          if (mouseY>0)
     
    128128          if (mouseX>0)
    129129            steering->rotateRight(mouseX*rotate);
    130           if (mouseX<0)
     130          if (mouseX<=0)
    131131            steering->rotateLeft(-mouseX*rotate);
    132           mouseY = 0;
    133           mouseX = 0;
     132          mouseY = 0;
     133          mouseX = 0;
    134134          moved = false;
    135135        }
     
    361361  {
    362362    SceneManager *mgr = ogre_->getSceneManager();
    363    
     363
    364364    Camera *cam = mgr->createCamera("Camera");
    365365    cam->setPosition(Vector3(0,0,-250));
     
    372372    node->attachObject(head);
    373373    node->attachObject(cam);
    374    
    375    
     374
     375
    376376
    377377    Entity* head1 = mgr->createEntity("head1", "ogrehead.mesh");
Note: See TracChangeset for help on using the changeset viewer.