From f8d9a447d9658d88f8088afb88d0d92e8087172c Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 22 Oct 2011 13:11:02 +0800 Subject: [PATCH 1/1] --- scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1