From: Ash Tyndall Date: Sat, 22 Oct 2011 05:11:02 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=f8d9a447d9658d88f8088afb88d0d92e8087172c;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 99ccfa0..0834fa2 100644 --- a/scene.c +++ b/scene.c @@ -309,8 +309,8 @@ void motion(int x, int y) { // **NOTE: Currently a work in progress, does not work correctly printf("cam angle: %f\n", rotate*camRotateFactor); // float arc = arctan() - sceneObjs[curObject].x += diffx * sin(rotate*camRotateFactor); - sceneObjs[curObject].z += diffx * cos(rotate*camRotateFactor); + sceneObjs[curObject].x += diffx * sin(rotate*camRotateFactor) * 0.3; + sceneObjs[curObject].z += diffx * cos(rotate*camRotateFactor) * 0.3; } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) { // w: big/small