From: Ash Tyndall Date: Sat, 22 Oct 2011 02:54:49 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=ccafea19dd13dcd3ef20b521cd629096df97660c --- diff --git a/scene.c b/scene.c index 997d8b0..5efecaf 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(90 - rotate*rotateFactor); - sceneObjs[curObject].z += (x - startx) * cos(90 - rotate*rotateFactor); + sceneObjs[curObject].x += (x - startx) * sin(rotate*rotateFactor); + sceneObjs[curObject].z += (x - startx) * cos(rotate*rotateFactor); } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) { // w: big/small float diff = (x - startx);