What is the result of Lerp(a, b, 0.5)?
float t = Mathf.Lerp(a, b, 0.5f);
- The midpoint between a and b
- The larger of a and b
- The difference of b and a
- The value a left unchanged
Linear interpolation at 0.5 returns the halfway value between a and b.
Play Game Dev ▸