Ignore:
Timestamp:
04/05/05 17:39:03 (19 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/OcclusionCullingSceneManager/TestCullingDotScene/TestCullingDotSceneApplication.cpp

    r37 r39  
    481481void MouseQueryListener::mouseDragged (MouseEvent *e) 
    482482 { 
    483          /* 
    484483         // If we are dragging the left mouse button.     
    485484         if ( mLMouseDown ) 
    486485         { 
    487                 mShipNode->translate(-e->getRelX() * 200, -e->getRelY() * 200, 0.0); 
     486                mCamera->yaw( -e->getRelX() * mRotateSpeed ); 
     487                mCamera->pitch( -e->getRelY() * mRotateSpeed ); 
    488488     } 
    489          */ 
    490           
     489                  
    491490         // If we are dragging the right mouse button. 
    492491         if ( mRMouseDown ) 
    493492         { 
    494                  mCamera->yaw( -e->getRelX() * mRotateSpeed ); 
    495                  mCamera->pitch( -e->getRelY() * mRotateSpeed ); 
     493                 Vector3 translation; 
     494                 translation.x += -e->getRelX() * 0.13; 
     495                 translation.y -= -e->getRelY() * 0.13; 
     496 
     497                 mCamera->moveRelative(translation);             
    496498         } 
    497499} 
Note: See TracChangeset for help on using the changeset viewer.