Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.