使用Mathf.SmoothDamp函数制作相机的缓冲跟踪效果,让物体的移动不是那么僵硬,而是做减速的缓冲效果。将以下的脚本绑定在相机上,然后设定好target目标对象,即可看到相机的缓动效果。通过设定smoothTime的值,可以调节缓动效果的持续时间。Mathf-SmoothDamp-Unity脚本APIhttps://docs.unity.cn/cn/current/ScriptReference/Mathf.SmoothDamp.htmlMathf.SmoothDamppublicstaticfloat SmoothDamp (float current,float target,re