Vector3.Lerp||doc136385

September 20, 2022

Format

Vector3.Lerp(fromVec, toVec, time)

Describe

Calculates the linear interpolation between two vectors. It can be used to make the effect of approaching from fast to slow.

parameter

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

Target interpolation time range is between [0, 1]

Return value

Type Describe
Vector3 Vector calculated by interpolation