From: Ash Tyndall Date: Sat, 22 Oct 2011 02:51:08 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=0c3bf9aaef7eff8c29473078889170b68657cb8c --- diff --git a/scene.c b/scene.c index 39ff405..b724f24 100644 --- a/scene.c +++ b/scene.c @@ -308,7 +308,7 @@ void motion(int x, int y) { // w: left/right, h: near/far //so.x, so.y, so.z //sceneObjs[curObject].x += (x - startx)*leftrightFactor; - + printf("cam angle: %f\n", camAngle*camAngleFactor); sceneObjs[curObject].x += (x - startx) * sin(90 - camAngle*camAngleFactor); sceneObjs[curObject].z += (x - startx) * cos(90 - camAngle*camAngleFactor); } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) {