fixed broken pingpong from #72

This commit is contained in:
Max Cahill 2024-03-07 16:34:23 +11:00
parent f9c1965205
commit 69142df6d4

View File

@ -112,7 +112,7 @@ end
--pingpong from 0 to 1 and back again
function mathx.pingpong(f)
return 1 - math.abs(1 - f % 2)
return 1 - math.abs(1 - (f * 2) % 2)
end
--quadratic ease in