(no commit message)
authorAsh Tyndall <[email protected]>
Sat, 22 Oct 2011 05:11:02 +0000 (13:11 +0800)
committerAsh Tyndall <[email protected]>
Sat, 22 Oct 2011 05:11:02 +0000 (13:11 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 99ccfa0..0834fa2 100644 (file)
--- 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\r
         printf("cam angle: %f\n", rotate*camRotateFactor);\r
        // float arc = arctan()\r
-        sceneObjs[curObject].x += diffx * sin(rotate*camRotateFactor);\r
-        sceneObjs[curObject].z += diffx * cos(rotate*camRotateFactor);\r
+        sceneObjs[curObject].x += diffx * sin(rotate*camRotateFactor) * 0.3;\r
+        sceneObjs[curObject].z += diffx * cos(rotate*camRotateFactor) * 0.3;\r
 \r
       } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) {\r
         // w: big/small\r

UCC git Repository :: git.ucc.asn.au