Vector2.Lerp||doc136392

September 20, 2022

Format

Vector2.Lerp(fromVec, toVec, time)

Describe

Calculates the linear interpolation between two vectors.

parameter

Variable name Type Describe
fromVec Vector2 Starting vector
toVec Vector2 Endpoint vector
time float Target interpolation

Target interpolation time range is between [0, 1]

Return value

Type Describe
Vector2 Vector calculated by interpolation