Skip to content

Instantly share code, notes, and snippets.

@Makistos
Last active September 5, 2018 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Makistos/123fc62e8c0f8eef6926fe6a1739d85c to your computer and use it in GitHub Desktop.
Save Makistos/123fc62e8c0f8eef6926fe6a1739d85c to your computer and use it in GitHub Desktop.
Step dampener by Dr Bob. #c #dampen
float actual = 0.0f;
float target = 100.0f;
for ( int step=0; step<500; step++ ){
actual += (target - actual)/16
printf("%f\n", actual);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment