Created
July 22, 2019 01:00
-
-
Save Stiner/8de1b4b94d8a18171e3eedb8045ca1aa to your computer and use it in GitHub Desktop.
Revisions
-
Stiner created this gist
Jul 22, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ // Smooth x = lerp(x, target_x, 0.1); x += (target_x - x) * 0.1; // Spring spdx = lerp(spdx, (target_x - x) * 0.5, 0.2); x += spdx;