(no commit message)
authorAsh Tyndall <[email protected]>
Sat, 22 Oct 2011 05:17:08 +0000 (13:17 +0800)
committerAsh Tyndall <[email protected]>
Sat, 22 Oct 2011 05:17:08 +0000 (13:17 +0800)
scene.c

diff --git a/scene.c b/scene.c
index 5dd48fd..deb8c0e 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -307,7 +307,7 @@ void motion(int x, int y) {
         // w: left/right, h: near/far\r
 \r
         // **NOTE: Currently a work in progress, does not work correctly\r
-        float angler = 2*M_PI*((rotate*camRotateFactor)/360);\r
+        float angler = 2 * M_PI * ( (rotate*camRotateFactor)/360.0 );\r
         printf("cam angle: %f\n", rotate*camRotateFactor);\r
        // float arc = arctan()\r
         sceneObjs[curObject].x += diffx * sin(angler) * 0.3;\r

UCC git Repository :: git.ucc.asn.au