Fix rotation order bug when detaching rigid body from object