Skip to main content
Interplanetary Travel Demo. By Krischan

Interplanetary Travel Demo

This demo shows simple interplanetary ship travel between two moving celestial bodies in 3D, initially inspired by the old game “Millennium 2.2”. I am using the exact body names from there (perhaps coding a remake some day) and real object radii / periods / sizes from Wikipedia (planets only, the moons would look weird and the scale wouldn’t fit anymore without major modifications).

The simulation doesn’t use launch windows – the ship starts direct to its target and reaches full speed in a second. The simulation calculates if the trajectory crosses the sun and calculates a future target position which leads to lower travel speeds (as the target object needs more time to reach the position). Just set a start and a target object (Standard: Moon > Callisto) and watch.

Valid start/target names are 9 planets and 29 moon names (please type them Case-Sensitive or the demo crashes!).

Code Example


Demo controls
Launch options demo.exe [width] [height] [fullscreen 1 or 0] [start] [target] [speed] [inc]
start / target = Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto, Moon,Phobos, Deimos, Amalthea, Io, Europa, Ganymede, Callisto, Leda, Himalia, Elara,Pasiphae, Mimas, Enceladus, Tethys, Dione, Rhea, Titan, Hyperion, Iapetus,Phoebe, Miranda, Ariel, Umbriel, Titania, Oberon, Triton, Nereid, Charon
speed = the ship speed in Mio. km/Day, normal = 20, hispeed = 40 and c=1079.9
inc = time increment per cycle divisor of 1/x, standard is 60
Escape Quit
Left Mouse Button advance time, holding!
Right Mouse Button Zoom 10x
WASD move Camera
SPACE switch planet/moon names

Download Interplanetary Travel Demo (0.7MB) Download Source (8.4KB)

Scan results at Virustotal

Leave a Reply

Your email address will not be published. Required fields are marked *