Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4310 in orxonox.OLD


Ignore:
Timestamp:
May 26, 2005, 9:13:37 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/physics: zoom-ability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/subprojects/particles/framework.cc

    r4309 r4310  
    123123          case 4:
    124124            PRINTF(4)("MouseWheel up\n");
    125             //zoomTo *= .5;
     125            camera->setRelCoor(camera->getRelCoor() + (camera->getTarget()->getAbsCoor() - camera->getAbsCoor())*.1);
    126126            break;
    127127          case 5:
    128128            PRINTF(4)("MouseWheel down\n");
    129             //zoomTo *= 2.0;
     129            camera->setRelCoor(camera->getRelCoor() - (camera->getTarget()->getAbsCoor() - camera->getAbsCoor())*.1);
    130130            break;
    131131          case 1:
     
    163163            break;
    164164          case SDLK_a:
    165             //zoomTo /=2;
     165            camera->setRelCoor(camera->getRelCoor() + (camera->getTarget()->getAbsCoor() - camera->getAbsCoor())*.1);
    166166            break;
    167167          case SDLK_z:
    168             //zoomTo *=2;
     168            camera->setRelCoor(camera->getRelCoor() - (camera->getTarget()->getAbsCoor() - camera->getAbsCoor())*.1);
    169169            break;
    170170          case SDLK_h:
Note: See TracChangeset for help on using the changeset viewer.