From aab2e2f70552398a51a24f644147a1c6de45c766 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 22 Oct 2011 10:55:32 +0800 Subject: [PATCH] --- scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene.c b/scene.c index 5efecaf..25cc0dc 100644 --- a/scene.c +++ b/scene.c @@ -309,8 +309,8 @@ void motion(int x, int y) { //so.x, so.y, so.z //sceneObjs[curObject].x += (x - startx)*leftrightFactor; printf("cam angle: %f\n", rotate*rotateFactor); - sceneObjs[curObject].x += (x - startx) * sin(rotate*rotateFactor); - sceneObjs[curObject].z += (x - startx) * cos(rotate*rotateFactor); + sceneObjs[curObject].x += (x - startx) * cos(rotate*rotateFactor); + sceneObjs[curObject].z += (x - startx) * sin(rotate*rotateFactor); } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) { // w: big/small float diff = (x - startx); -- 2.20.1