(no commit message)
authorAsh Tyndall <git@atyndall.net>
Sat, 22 Oct 2011 02:54:09 +0000 (10:54 +0800)
committerAsh Tyndall <git@atyndall.net>
Sat, 22 Oct 2011 02:54:09 +0000 (10:54 +0800)
scene.c

diff --git a/scene.c b/scene.c
index b724f24..997d8b0 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -308,9 +308,9 @@ void motion(int x, int y) {
         // w: left/right, h: near/far\r
          //so.x, so.y, so.z\r
         //sceneObjs[curObject].x += (x - startx)*leftrightFactor;\r
-        printf("cam angle: %f\n", camAngle*camAngleFactor);\r
-        sceneObjs[curObject].x += (x - startx) * sin(90 - camAngle*camAngleFactor);\r
-        sceneObjs[curObject].z += (x - startx) * cos(90 - camAngle*camAngleFactor);\r
+        printf("cam angle: %f\n", rotate*rotateFactor);\r
+        sceneObjs[curObject].x += (x - startx) * sin(90 - rotate*rotateFactor);\r
+        sceneObjs[curObject].z += (x - startx) * cos(90 - rotate*rotateFactor);\r
       } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) {\r
         // w: big/small\r
         float diff = (x - startx);\r

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