Use sliders to control the direction, speed, and distance to the center of rotation for each object. Press space to only show the sliders, again to hide all variables, and once more to bring them all back. As before, use 1 & 2 to swap between a moon and an astronaut.
Just a fun little project improving one of my old projects. Same concept as the original, but with completely new code, now instead of calculating the movement of the planet and satellite, resulting in some noticable drifting of the satellite as it struggled to keep up at high speeds, it calculates where it should be with a bit of trigonometry, so the positions *should* be more accurate. There is still a small difference in how far away the satellite should be to the planet compared to where it is, as seen in the 'difference' variable.