Implemented quaternion-based rotation interpolation.