Skip to content

Instantly share code, notes, and snippets.

@patrickheng
Last active November 19, 2019 11:27
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickheng/2c389ba22e60a197a3966e6df47e0858 to your computer and use it in GitHub Desktop.
Save patrickheng/2c389ba22e60a197a3966e6df47e0858 to your computer and use it in GitHub Desktop.
Formula
current -= ( target + current ) * friction
current += ( target - current ) * friction
A + progress * ( B - A )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment