How to Lerp between Float variables?

float firstvalue = 20.0f;
float secondvalue = 40.0f;
float alpha = 0.5f;
float lerpedvalue = FMath::Lerp(firstvalue, secondvalue, alpha);

lerpedvalue will be 30.0f in this case.
FMath::Lerp is a templated function and will do vectors, rotators, floats as needed.

6 Likes