From: Ash Tyndall Date: Sat, 22 Oct 2011 02:42:35 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=fe589a3051db988450daaf58dd76b2fb321abdba --- diff --git a/globals.c b/globals.c index c7c5e71..aee2766 100644 --- 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 --- a/scene.c +++ b/scene.c @@ -319,7 +319,7 @@ void motion(int x, int y) { sceneObjs[curObject].scale[2] *= scaling; // h: up/down - sceneObjs[curObject].y += (y - starty) * updownFactor; + sceneObjs[curObject].y -= (y - starty) * updownFactor; } starty = y;