$ ./guess_the_languageGame Dev
Game Dev · medium · #94

What is the result of Lerp(a, b, 0.5)?

float t = Mathf.Lerp(a, b, 0.5f);
  1. The midpoint between a and b
  2. The larger of a and b
  3. The difference of b and a
  4. The value a left unchanged
Linear interpolation at 0.5 returns the halfway value between a and b.
Play Game Dev ▸