1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-10-03 15:59:04 +00:00

Fix variable name in MathUtils.smoothLerp

This commit is contained in:
Mike Welsh 2024-02-16 17:22:55 -08:00
parent 516c5e8596
commit ef96bd4358

View file

@ -70,6 +70,6 @@ class MathUtil
// var halfLife:Float = -duration / logBase(2, precision);
// lerp(current, target, 1 - exp2(-elapsed / halfLife));
return lerp(current, target, 1 - Math.pow(p, elapsed / duration));
return lerp(current, target, 1 - Math.pow(precision, elapsed / duration));
}
}