fixed pingpong backwards

This commit is contained in:
Max Cahill 2021-09-24 11:48:25 +10:00
parent 107cad43e5
commit 754faecd02

View File

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