- // For big/small scaling, we map negative numbers to 0->1 and positive numbers to 1->inf\r
- float diff = (x - startx);\r
- float scaling = ( diff + (float)height/2 ) / ( (float)height/2 );\r
+ // **NOTE: Currently a work in progress, does not work correctly\r
+ float angler = 2 * M_PI * ( (rotate*camRotateFactor)/360.0 );\r
+ printf("cam angle: %f\n", rotate*camRotateFactor);\r
+\r
+ sceneObjs[curObject].x += diffx * cos(angler) * 0.1;\r
+ sceneObjs[curObject].z += diffx * sin(angler) * 0.1;\r
+\r
+ sceneObjs[curObject].x += diffy * cos(90 - angler) * 0.1;\r
+ sceneObjs[curObject].z += diffy * sin(90 - angler) * 0.1;\r
+\r
+ } else if ( buttonSelected == GLUT_MIDDLE_BUTTON ) {\r
+ // w: big/small\r
+ float max = (float)height/bigsmallFactor;\r
+ float scaling = (diffx + max) / max;\r