Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Vector4.Lerp

Switch to Manual
public static function Lerp(from: Vector4, to: Vector4, t: float): Vector4;

Parameters

Description

Linearly interpolates between two vectors.

Interpolates between from and to by amount t.

t is clamped between [0...1]. When t = 0 returns from. When t = 1 returns to. When t = 0.5 returns the average of from and to.