Unity3d 的 Mathf.Lerp 是取两个数之间中间数吗?Unity3d 的 Mathf.Lerp 是取两个数之间中间数吗?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 03:59:22

Unity3d 的 Mathf.Lerp 是取两个数之间中间数吗?Unity3d 的 Mathf.Lerp 是取两个数之间中间数吗?
Unity3d 的 Mathf.Lerp 是取两个数之间中间数吗?
Unity3d 的 Mathf.Lerp 是取两个数之间中间数吗?

Unity3d 的 Mathf.Lerp 是取两个数之间中间数吗?Unity3d 的 Mathf.Lerp 是取两个数之间中间数吗?
插值是根据Lerp(a,b,t)中的第三个参数t来返回a和b之间的值
如果t是变化的,比如Time.time,则在一秒之内从a变化到b