Click the Green Flag and watch the rocket follow its crazy trajectory entirely controlled by the initial state and constant gravity of the planets. Oh, and remember to check the original project. It's great.
I removed the 1D demonstration and the mouse controls, and tweaked and fine-tuned the initial velocity so that the rocket follows this crazy path.