Time to clear up some misconceptions and show how a spacecraft's close encounter with a planet can change a spacecraft's orbit and enable trajectories beyond its available delta-v. I specifically cover some of the math and look at the unusual trajectory employed by the OSIRIS REx mission.

spacecraftorbitgravitynavigationkerbal space programscienceosiris rexcassininasa