Quantcast

Reset 'v' every frame. Otherwise the animation keeps growing forever.

Scott Sibley [08-05-11 - 06:59]
Reset 'v' every frame. Otherwise the animation keeps growing forever.
Filename
Modules/Position/Position.lua
diff --git a/Modules/Position/Position.lua b/Modules/Position/Position.lua
index 10bc9a6..b44af53 100644
--- a/Modules/Position/Position.lua
+++ b/Modules/Position/Position.lua
@@ -59,6 +59,7 @@ t = 0
 ]],
 		animationFrame = [[
 t = t - 5
+v = 0
 ]],
 		animationPoint = [[
 d=(v*0.3); r=t+i*PI*0.02; x=cos(r)*d; y=sin(r)*d