Update quaternion