Last active
September 5, 2018 12:56
-
-
Save Makistos/123fc62e8c0f8eef6926fe6a1739d85c to your computer and use it in GitHub Desktop.
Step dampener by Dr Bob. #c #dampen
This file contains 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
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