From: Ash Tyndall Date: Sat, 22 Oct 2011 03:16:25 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=3f3a50c529bc7bf7b51939205c43606e8392cd49;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 6f74153..8d875b0 100644 --- a/scene.c +++ b/scene.c @@ -329,8 +329,8 @@ void motion(int x, int y) { case STATE_OBJECT_ROTATION_TEXTURE_SCALE: if ( buttonSelected == GLUT_LEFT_BUTTON ) { // w: rotate on width, h: rotate on h - sceneObjs[curObject].rotation.x += diffx * rotateFactor; - + sceneObjs[curObject].rotation.x += diffy * rotateFactor; + sceneObjs[curObject].rotation.y += diffx * rotateFactor; } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) { // w: rotate on height, h: texture scale