Incorporated quaternions to object rotation