MATH!!!!!!!!!!!!!!
This commit is contained in:
parent
1915981938
commit
4475ddfb54
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ function updateSaws()
|
||||||
local arc = s.arcs[len]
|
local arc = s.arcs[len]
|
||||||
|
|
||||||
for arm = 1, s.arms, 1 do
|
for arm = 1, s.arms, 1 do
|
||||||
local sawPos = arc:pointOnArc(360 / s.arms * arm + (s.time * len))
|
local sawPos = arc:pointOnArc((arc:length()-360) / s.arms * arm + (s.time * len))
|
||||||
|
|
||||||
s.saws[len + ((arm-1)*s.arms)]:moveTo(sawPos.x,sawPos.y)
|
s.saws[len + ((arm-1)*s.arms)]:moveTo(sawPos.x,sawPos.y)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue