Frame rate independent lerp?

This works! In order for this kind of sway lerp to look good I have to set the f to something really low like 1 / trillion which is a bit annoying.

Iā€™m a bit late but the cleanest solution (not requiring 0.000000001 type numbers,) would be
current = current:lerp(target,1-math.exp(-speed*deltaTime))

16 Likes