spinner isn't feeling too good...
This commit is contained in:
parent
484537afa1
commit
7decfe721f
1 changed files with 10 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue