Last active
January 9, 2025 07:23
-
-
Save GammaGames/f97cd36c2bb5d4073eaa9adee7db590f to your computer and use it in GitHub Desktop.
Exponential decay by Freya (framerate independent lerp)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Exponential decay by Freya (framerate independent lerp) | |
func flerp(a, b, dt, decay): | |
return b + (a - b) * exp(-decay * dt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment