From: Ash Tyndall Date: Sat, 22 Oct 2011 04:56:03 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=97f14d98d0a9bee56fdaebcea092dba1925c9552 --- diff --git a/scene.c b/scene.c index f4b4343..99ccfa0 100644 --- a/scene.c +++ b/scene.c @@ -308,6 +308,7 @@ 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); @@ -328,8 +329,6 @@ void motion(int x, int y) { case STATE_OBJECT_ROTATION_TEXTURE_SCALE: - // FML DOES NOT ROTATE PROPERLY - if ( buttonSelected == GLUT_LEFT_BUTTON ) { // w: rotate on y sceneObjs[curObject].rotation.y += diffx * rotateFactor;