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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/09 19:20:49
Unity3d的Mathf.Lerp是取两个数之间中间数吗?Unity3d的Mathf.Lerp是取两个数之间中间数吗?Unity3d的Mathf.Lerp是取两个数之间中间数吗?Unity3d的Ma

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