Lerp和SmoothDamp比较-LMLPHP

Lerp更像是线性衰减,而SmoothDamp像是弧形衰减,两者都是由快而慢

其中SmoothDamp多用于相机跟随。但如果其他类型的插值,我个人觉的其实都差不多

SmoothDamp:

transform.position = Vector3.SmoothDamp(transform.position, target.position, ref velocity, smoothTime);

Lerp:

transform.position = Vector3.Lerp(transform.position, target.position, 0.1f);
05-11 11:23