Note
Go to the end to download the full example code
Interpolate Between Quaternion Orientations#
We can interpolate between two orientations that are represented by quaternions either linearly or with slerp (spherical linear interpolation). Here we compare both methods and measure the angular velocity between two successive steps. We can see that linear interpolation results in a non-constant angular velocity. Usually it is a better idea to interpolate with slerp.