Frame Rate Independent Damping using Lerp

Frame Rate Independent Damping using Lerp – CodeItNow

線形補間を使ったフレームレート非依存の Damping をやろうぜ記事

code:.cs
public static float Damp(float source, float target, float smoothing, float dt) {
return Mathf.Lerp(source, target, 1 - Mathf.Pow(smoothing, dt))
}

指数関数的減衰を使ってもいい
code:.cs
public static float Damp(float a, float b, float lambda, float dt) {
return Mathf.Lerp(a, b, 1 - Mathf.Exp(-lambda * dt))
}

プロットしてみた
https://www.mycompiler.io/view/GkZ6lGtpYFt

mr.doob も参照してます
https://github.com/mrdoob/three.js/blob/37d6f280a5cd642e801469bb048f52300d31258e/src/math/MathUtils.js#L69-L74

keijiro 神による CDS との比較してみるリポジトリ
https://github.com/keijiro/SmoothingTest