(no commit message)
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index a529c62..d9a4ea3 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -256,8 +256,8 @@ void keyboard(unsigned char key, int x, int y) {
  */\r
 void motion(int x, int y) {\r
   if (moving) {\r
-    zoomFactor += (x - startx);\r
-    rotateFactor += (y - starty);\r
+    zoomFactor += (y - starty);\r
+    rotateFactor += (x - startx);\r
     startx = x;\r
     starty = y;\r
     glutPostRedisplay();\r
@@ -319,7 +319,7 @@ void display() {
   glPushMatrix();\r
 \r
     /* Perform scene rotations based on user mouse/keyboard input. */\r
-    glRotatef(rotateFactor*0.2, 0.0, 1.0, 0.0);\r
+    glRotatef(rotateFactor*0.5, 0.0, 1.0, 0.0);\r
     //glTranslatef(camx, camy, camz);\r
     //glRotatef(rot, 1.0, 0.0, 0.0);\r
 \r

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