X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=scene.c;h=0834fa2bdf557eb9c2e414b84da3e02de7aee144;hp=281f99f8f29cf903c31e076c2eb0275ce8d0613b;hb=f8d9a447d9658d88f8088afb88d0d92e8087172c;hpb=2a9451d5c45eda1d68677b519784bd9756f72260 diff --git a/scene.c b/scene.c index 281f99f..0834fa2 100644 --- a/scene.c +++ b/scene.c @@ -309,8 +309,8 @@ void motion(int x, int y) { // **NOTE: Currently a work in progress, does not work correctly printf("cam angle: %f\n", rotate*camRotateFactor); // float arc = arctan() - sceneObjs[curObject].x += diffx * sin(rotate*camRotateFactor); - sceneObjs[curObject].z += diffx * cos(rotate*camRotateFactor); + sceneObjs[curObject].x += diffx * sin(rotate*camRotateFactor) * 0.3; + sceneObjs[curObject].z += diffx * cos(rotate*camRotateFactor) * 0.3; } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) { // w: big/small @@ -413,7 +413,7 @@ void display() { glPushMatrix(); /* Perform scene rotations based on user mouse/keyboard input. */ - //glRotatef(rotate*camRotateFactor, 0.0, 1.0, 0.0); + glRotatef(rotate*camRotateFactor, 0.0, 1.0, 0.0); glTranslatef(camx, camy, camz); glRotatef(keyrot, 1.0, 0.0, 0.0);