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

index c7c5e71..aee2766 100644 (file)
--- a/globals.c
+++ b/globals.c
@@ -92,7 +92,7 @@ GLfloat emission[] = {0.0, 0.3, 0.3, 1.0};
 /* Zoom and rotate tracking */
 GLfloat zoom = 0.0, rotate = 0.0, camAngle = 40.0;
 GLfloat zoomFactor = 0.2, rotateFactor = 0.5, camAngleFactor = 0.5;
-GLfloat leftrightFactor = 0.5, nearfarFactor = 0.5, bigsmallFactor = 0.6, updownFactor = 0.5;
+GLfloat leftrightFactor = 0.5, nearfarFactor = 0.5, bigsmallFactor = 0.6, updownFactor = 0.1;
 
 /* Beginning width, height */
 int width = 500, height = 500;
diff --git a/scene.c b/scene.c
index debba60..49661b1 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -319,7 +319,7 @@ void motion(int x, int y) {
         sceneObjs[curObject].scale[2] *= scaling;\r
 \r
         // h: up/down\r
-        sceneObjs[curObject].y += (y - starty) * updownFactor;\r
+        sceneObjs[curObject].y -= (y - starty) * updownFactor;\r
       }\r
 \r
       starty = y;\r

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