From: Ash Tyndall Date: Sat, 22 Oct 2011 01:58:44 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=b1fc06189a6ff782681585df37dc0197d66af3bf;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 3a52435..565fd03 100644 --- a/scene.c +++ b/scene.c @@ -313,13 +313,13 @@ void motion(int x, int y) { if ( diff < 0 ) { scaling = (diff - -((float)height/2))/(0 - -((float)height/2)); } else { - scaling = diff; + scaling = scaling * diff; } printf("Diff is %f, Scaling by %f on all axii\n", diff, scaling); - sceneObjs[curObject].scale[0] *= scaling; - sceneObjs[curObject].scale[1] *= scaling; - sceneObjs[curObject].scale[2] *= scaling; + sceneObjs[curObject].scale[0] = scaling; + sceneObjs[curObject].scale[1] = scaling; + sceneObjs[curObject].scale[2] = scaling; starty = y; }