$ ./guess_the_languageGame Dev
Game Dev · hard · #97

Why use Slerp instead of Lerp for rotations?

Quaternion q = Quaternion.Slerp(from, to, t);
  1. It keeps constant angular speed
  2. It runs faster on the GPU
  3. It avoids using quaternions
  4. It clamps the result to zero
Spherical interpolation rotates at a steady rate, avoiding wobble.
Play Game Dev ▸