Unity Lerp
由....線性插值轉換到目標值
可以用於顏色等各種事情
Vector3.Lerp(Vector3 a , Vector3 b , float f)
Quaternion.Lerp(Quaternion a , Quaternion b , float f)
Color.Lerp(Color a , Color b , float f)
Mathf.Lerp(Mathf a , Mathf b , float f)
效果為開始值+目標值 / F = 下一次開始值
由....線性插值轉換到目標值
可以用於顏色等各種事情
Vector3.Lerp(Vector3 a , Vector3 b , float f)
Quaternion.Lerp(Quaternion a , Quaternion b , float f)
Color.Lerp(Color a , Color b , float f)
Mathf.Lerp(Mathf a , Mathf b , float f)
效果為開始值+目標值 / F = 下一次開始值
留言
張貼留言