Tykun, the planet
Orbit happens on Tykun, a small planet. It is 600 km in radius, about a tenth of Earth’s, and the pull at its surface is Earth’s: 9.81 m/s². It turns once every four hours, so a rocket standing on the equator already moves east at 262 m/s. Launch east and you keep that speed for free.
The air’s density at the ground, 1.225 kg/m³, is Earth’s at sea level, and it thins by a factor of e every 5.6 km. At 70 km it ends: the game sets the density to zero there, where it is already down to 4.6 × 10⁻⁶ kg/m³. A moon sits 12,000 km away and pulls on the ship too, but its gravitational parameter is under 2 % of the planet’s.
Almost everything below comes from one number, the planet’s gravitational parameter , which is the surface gravity times the radius squared:
An orbit is falling sideways
Throw a stone and it lands. Throw it harder and it lands farther away, where the ground has curved a little below it. Throw it hard enough and the ground curves away as fast as the stone falls, so it never lands. That is an orbit. Nothing holds the ship up: it falls all the time and misses. Gravity does not go away up there. At 100 km it is still 7.2 m/s², about three quarters of its value on the ground.
How hard is hard enough depends on the distance from the planet’s centre. For a circle:
At 100 km above the ground, is 700 km and is 2,246 m/s. The game’s low target orbit is that one. Go faster than and the ship climbs away from the planet, slowing down on the way, then falls back. Go faster still and it never turns back. The speed that just manages it is the escape speed:
It is times the circular speed: 3,177 m/s at 100 km. Launching east lets you take the planet’s 262 m/s off the first number.
The shape of an orbit
Below the escape speed the path is an ellipse, and four words describe it. The periapsis is the point where the ship is closest to the planet and the apoapsis the point where it is farthest. The semi-major axis is half the ellipse’s longest width, so it is the average of the two distances measured from the planet’s centre. The eccentricity says how stretched the ellipse is: 0 is a circle, a value near 1 is long and thin, and 1 or more is a path that never closes.
Take a ship at 100 km moving level at 2,600 m/s. Its periapsis is where it is, 100 km up. Its apoapsis is 820.9 km up, its semi-major axis is 1,060.4 km, its eccentricity is 0.340 and one lap takes 1 h 01 min.
The game shows these as you fly. The map draws two markers on your orbit, labelled Ap and Pe, each with its height above the ground, and the flight screen has AP and PE read-outs. The first goal asks for a periapsis above 70 km, held for 5 s, so the ship is out of the air for good. The second asks for an eccentricity below 0.02, held for 10 s, which is a circle to the eye. Heights in the game are measured from the ground, but , and the rest are measured from the centre, 600 km lower.
The vis-viva equation
One equation ties a ship’s speed to where it is and to the size of its orbit. Its name is Latin for “living force”: vis viva was an old measure of motion, mv², which is twice what we now call kinetic energy. With the distance from the centre and the semi-major axis:
Try it: the vis-viva equation, term by term
Change r, the distance from Tykun’s centre, and a, the orbit’s semi-major axis. Each term of the equation above is worked out below, with a bar to one scale: the bar for v² is the bar for 2μ/r minus the bar for μ/a.
km
r must be between 670 and 5,600 km.
km
μ, Tykun’s gravity, held fixed 3.5316 × 10¹² m³/s²
At a fixed , the equation gives every speed from 0, when , upward without bound, as is made negative and shrinks toward 0 (those are the hyperbolas). Set and it gives the circular speed. Let grow without limit and it gives the escape speed. The two speeds from above are two points inside that range, as the explorer just above shows. The other quantities the game shows are built from it and from two conserved numbers. The first is the energy of one kilogram, its speed and its height together:
and the equation, turned around, gives the semi-major axis from the speed you have:
The second is the angular momentum of one kilogram. With the angle of the velocity above the horizontal, only the sideways part of the speed counts, and the angular momentum is
Energy and angular momentum give the eccentricity, and the eccentricity gives the two extremes of the orbit:
At those two points the velocity is level, so the speeds there are the angular momentum divided by the distance, and a lap takes
When is 1 or more there is no apoapsis and no lap time, and the calculator below says so instead of printing a number. Subtract 600 km from and to get the heights the map shows.
The calculator uses these formulas as written. Three sliders set the ship’s height, speed and angle; it works out the rest in your browser, draws the orbit to scale and tells you whether the ship ends up in orbit, in the air, on the ground or gone.
Try it: an orbit calculator
Set a height, a speed and a direction for a rocket above Tykun, its engine off. The calculator works out the orbit it ends up on, from the equations further down.
And Einstein?
What the game computes, and what it leaves out
The equations above describe two bodies that never disturb each other. The game does not stop there: it moves the ship one small step at a time, 0.02 s per step, fifty steps for every second of game time, with a method called velocity Verlet. It does not slowly add or lose energy over a long orbit, which a common alternative, the fourth-order Runge–Kutta method, does. The same inputs always give the same flight, bit for bit.
At each step the ship feels the pull of the planet and the pull of the moon, plus its engine and, below 70 km, the air’s drag, which grows with the air’s density and with the square of the speed relative to the air. The air turns with the planet. The ship is a test particle: it is pulled by the bodies and pulls none of them. The planet and the moon follow fixed paths around their common centre, and the ship does not disturb them.
The elements on the map and the flight screen are worked out from the ship’s position and velocity as if the planet were alone, once per frame. With the moon pulling, the real path drifts a little away from the ellipse the screen draws, and the next frame draws a new one, so the numbers can shift slightly over a long coast.
Left out: the planet’s shape, which is a perfect ball with all its mass at the centre; wind and lift in the air; and relativity, which the game does not model.
Einstein’s corrections, and why the game skips them
Newton’s gravity is an excellent approximation, not the last word. Einstein’s relativity corrects it, and the last block of the calculator, titled “And Einstein?”, shows four numbers that say by how much. I give the values for the calculator’s starting point, a circle 100 km up.
The first two numbers say how big the corrections should be: the strength of gravity there, and the ship’s speed squared, each measured against the speed of light :
Both are 5.6 × 10⁻¹¹, six parts in a hundred billion. They are equal because on a circle . Relativity changes an orbit by about that fraction, an order of magnitude and no more, and no screen draws a part in 10¹⁰.
The third number is the one made famous by Mercury. Under Einstein’s gravity an ellipse does not close: each lap the long axis turns a little, by
per orbit. For the 100 km circle that is 218 microarcseconds a lap, which moves the periapsis by 0.74 mm, or 3.52 arcseconds a year. Mercury’s long axis turns by 43 arcseconds a century, and Carroll’s lecture notes work out 42.9 for it from this formula. So Tykun’s low orbit turns about eight times faster than Mercury’s, and it would still need about a thousand years to turn one degree.
The fourth number is about clocks. A clock deeper in gravity runs slower, and a clock that moves runs slower. The calculator compares a clock on the orbit, averaged over one turn, with a clock on the turning equator, to first order in . Here is the planet’s turn, every 14,400 s:
The first two terms belong to the clock on the ground, deep in the pull and carried at 262 m/s. The last belongs to the clock on the orbit. Over a lap, the average of is and so is the average of , which gives the . At the starting point the orbit clock falls behind by 1.58 µs a day. The 1,060 km ellipse of the examples above runs ahead by 0.89 µs a day. A circle at the calculator’s ceiling, 5,000 km up, runs ahead by 4.78 µs a day, and a circle about 295 km up is where the two cancel (I worked these three out numerically).
Where this would matter is a navigation system built on clocks, as GPS is on Earth. A receiver finds where it is from how long signals from several satellites took to arrive, so one microsecond of clock error is 300 m of distance. On Tykun, a satellite on the 5,000 km circle would drift 4.78 µs a day against the ground clocks, 1.4 km of error a day if no one corrected it. On Earth, Ashby finds the GPS satellite clocks beat fast by 4.4647 × 10⁻¹⁰ against clocks on the geoid (his Eq. 35, the same kind of sum as above). That is 38.6 µs a day, or 11.6 km of light travel, by my arithmetic. The satellite clocks are therefore set to 10.22999999543 MHz instead of 10.23 MHz, and Ashby writes that without these corrections the system would not work.
Orbit has no clocks to compare and no receiver to find, and the precession is under a millimetre a lap. Newton is enough here. The calculator shows the four numbers so you can see how small they are.
For more advanced readers: where the vis-viva equation comes from
The equation follows from two conservation laws and some algebra, using only the periapsis and the apoapsis. The steps are all below. It is written for an ellipse, with one kilogram of ship feeling the planet’s pull and no other force.
Step 1, energy. The pull depends only on the distance, so the kinetic energy and the potential energy (zero at infinity) always add up to the same number, the from above:
Step 2, angular momentum. The pull points at the planet’s centre, so it cannot turn the ship, and stays the same, with the part of the speed across the line to the centre. At the periapsis and the apoapsis the distance is at its smallest and its largest, so the ship is neither approaching nor receding and all its speed is across: . So at the two points:
Step 3, energy at the two points. Step 1 holds at both, so:
Step 4, one speed left. Step 2 gives . Put it into step 3 and gather the terms in on one side:
Now and . On a circle and the equation below is true at once. On any other ellipse is not zero, so it cancels from both sides, and what remains is:
Step 5, the energy. Put that into the energy at the periapsis:
The middle equality is algebra: . The last equality is the definition of from earlier, the average of the two distances, so .
Step 6, anywhere on the orbit. The energy is the same at every point (step 1), so at a distance with speed :
That is the vis-viva equation. It is easy to compute because it needs two numbers, where you are and how fast you go. For the ship at 100 km moving level at 2,600 m/s, is 2.857 × 10⁻⁶ per metre and is 1.914 × 10⁻⁶, so is 9.430 × 10⁻⁷ and is 1,060.4 km, the number the calculator gives. For an open path the same relation holds, with zero or positive, so that is infinite or negative: that is how the calculator reads it.
References
- P. Lozano, “Session 5: Review of Classical Astrodynamics”, lecture notes for 16.522 Space Propulsion, MIT OpenCourseWare, Spring 2015, Eqs. (4), (11), (14), (16) and (18): the angular momentum, the vis-viva integral with the eccentricity, the periapsis and apoapsis, the energy and the period. https://ocw.mit.edu/courses/16-522-space-propulsion-spring-2015/6127948308ccbe73c1c44751e2509ae0_MIT16_522S15_Lecture5.pdf (accessed November 2, 2026)
- “Vis-viva equation”, Wikipedia, for the name’s meaning and for the escape speed as the limit of the equation when grows without limit. https://en.wikipedia.org/wiki/Vis-viva_equation (accessed November 2, 2026)
- N. Ashby, “Relativity in the Global Positioning System”, Living Reviews in Relativity 6 (2003), 1, section 5, Eq. (35): the satellite clock’s rate against the geoid; Eq. (36): the 10.22999999543 MHz setting; section 9: its average over an orbit, . doi:10.12942/lrr-2003-1 (accessed November 2, 2026)
- S. M. Carroll, “Lecture Notes on General Relativity”, arXiv:gr-qc/9712019 (1997), chapter 7, Eq. (7.56) and the text after it: the turn of an orbit’s long axis and Mercury’s 43 arcseconds a century. https://arxiv.org/abs/gr-qc/9712019 (accessed November 2, 2026)
Revised November 30, 2026.
Play Orbit Play it on a computer Orbit’s page: how to play, what it needs