Skip to content

Instantly share code, notes, and snippets.

@GammaGames
Last active January 9, 2025 07:23
Show Gist options
  • Save GammaGames/f97cd36c2bb5d4073eaa9adee7db590f to your computer and use it in GitHub Desktop.
Save GammaGames/f97cd36c2bb5d4073eaa9adee7db590f to your computer and use it in GitHub Desktop.
Exponential decay by Freya (framerate independent lerp)
# 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