Changeset 39 for trunk/VUT/OcclusionCullingSceneManager/TestCullingDotScene
- Timestamp:
- 04/05/05 17:39:03 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/OcclusionCullingSceneManager/TestCullingDotScene/TestCullingDotSceneApplication.cpp
r37 r39 481 481 void MouseQueryListener::mouseDragged (MouseEvent *e) 482 482 { 483 /*484 483 // If we are dragging the left mouse button. 485 484 if ( mLMouseDown ) 486 485 { 487 mShipNode->translate(-e->getRelX() * 200, -e->getRelY() * 200, 0.0); 486 mCamera->yaw( -e->getRelX() * mRotateSpeed ); 487 mCamera->pitch( -e->getRelY() * mRotateSpeed ); 488 488 } 489 */ 490 489 491 490 // If we are dragging the right mouse button. 492 491 if ( mRMouseDown ) 493 492 { 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); 496 498 } 497 499 }
Note: See TracChangeset
for help on using the changeset viewer.