mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-03 20:23:46 +00:00
Fix variable name in MathUtils.smoothLerp
This commit is contained in:
parent
516c5e8596
commit
ef96bd4358
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue