diff --git a/Source/Saws.lua b/Source/Saws.lua index 2e3b670..e671596 100644 --- a/Source/Saws.lua +++ b/Source/Saws.lua @@ -75,6 +75,16 @@ function updateSaws() b.saw:setAnimator(a) end end + + for spinner = 1, #spinblades, 1 do + for armlen = 1, spinblades[spinner].armlen do + for blade = 1, #spinblades[spinner].blades do + spinblades[spinner].time += spinblades[spinner].speed + local newpos = {x=math.sin(math.rad(spinblades[spinner].time)) * 20 * armlen,y=math.cos(math.rad(spinblades[spinner].time)) * 20 * armlen} + spinblades[spinner].blades[blade]:moveTo(spinblades[spinner].mid.x + newpos.x, spinblades[spinner].mid.y + newpos.y) + end + end + end end function killBlades()