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 = 下一次開始值 












留言

這個網誌中的熱門文章

無法載入檔案或組件 'System.IO.Compression' 或其相依性的其中之一。

MongoDB 入門

DDD With MVC