implementation of a critically-damped spring, most similar to that of Unity's SmoothDamp() function unlike most smooth glide blocks commonly found in other projects, this incorporates both a position and velocity variable, as well as delta time (although that could probably be removed through a bit of finnicking with the custom block code) move your mouse around - green line represents distance to the target position - red line represents velocity (in pixels/sec) algorithm taken from Game Programming Gems Vol. 4 all code by me, @falkimore