how does gravity influence the motion of objects in the solar system