Skip to content

Lerp

Description

Lerp is a Function on Math
Linear interpolates (lerps) between a and b by the value t. t is a number between 0 and 1, where 0 is a, and 1 is b. If you input 0.5 for t, you will get the value in the middle of a and b.

Example
local testVariable = Math.Lerp(1.0, 1.0, 1.0)
Usage

network usage: Any (Client or Server/Host)
returns: float
parameters:
- a (float)
- b (float)
- t (float)