Version: 2017.2

Vector3.LerpUnclamped

切换到手册
public static Vector3 LerpUnclamped (Vector3 a, Vector3 b, float t);

描述

在两个向量之间进行线性插值。

使用插值 t 在向量 ab 之间进行插值。这最常用于查找占两个端点之间距离特定百分比的点(例如,以便在这些点之间逐步移动对象)。

t = 0 时返回 t。 当 t = 1 时返回 t。 当 t = 0.5 时返回 ab 中间的点。

另请参阅:Lerp