语言英语
  • C#

Vector3.LerpUnclamped

声明

public static Vector3 LerpUnclamped(Vector3 a, Vector3 b, float t);

描述

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

通过插值因子 t 在向量 ab 之间进行插值。这最常用于查找两端点之间线段上某个分数位置的点(例如,逐步移动对象到这些点之间)。

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

其他资源:Lerp


Did you find this page useful? Please give it a rating: