From 7decfe721f4bc28b4728a12d5c8de24305795e7d Mon Sep 17 00:00:00 2001 From: PossiblyAxolotl Date: Sun, 8 May 2022 11:31:53 -0600 Subject: [PATCH] spinner isn't feeling too good... --- Source/Saws.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) 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()