X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=4852c0b9bfd4adebac8945e39041b31a7c4655ab;hp=debba608da20efb80cf51e68205f7bdf0538aacd;hb=06157337bd3a8931dec438a5c322cab420510736;hpb=9d534bb644d7510782a835c701e4b185957f7e64 diff --git a/scene.c b/scene.c index debba60..4852c0b 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; @@ -375,7 +375,7 @@ void display() { 0.0, 10.0, 0.0 /* up is in postivie Y direction */ ); - glRotatef(camAngle*camAngleFactor, 1.0, 0.0, 0.0); + //glRotatef(camAngle*camAngleFactor, 1.0, 0.0, 0.0); /* Reposition the light source 0. */ lightPosition0[0] = 12*cos(lightAngle0);