change animation to use quaternion-based Rotation class