Linearly interpolates between from and to, depending on amount.
float Lerp(float from, float to, float amount)
Type: float
The start value.
Type: float
The end value.
Type: float
How far between from and to to transition (0 - 1).
The value between from and to.
// ease out from "from" to "to"
float from
float to
float speed
on Play()
{
from = 0
to = 100
speed = 0.05 // 5% between from and to
}
from = lerp(from, to, speed)