To stop the flipping maybe apply a force vector in direction from center of mass of dragon to center of mass of the cliff?