spinner isn't feeling too good...

This commit is contained in:
PossiblyAxolotl 2022-05-08 11:31:53 -06:00
parent 484537afa1
commit 7decfe721f

View file

@ -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()