What it does
math.lerp takes a, b and t.
Signature
math.lerp(a, b, t)Arguments
abt
Example · generated
function update(dt) { math.lerp(1, 0.4, 0.5);}math.lerp is called with values of the shape its signature asks for. The code sits in update(dt), which the engine calls every frame: dt is the time since the last one, in seconds.