Click flag. Moon Mimas orbits Saturn sideways. Moon's size (and z coordinate) matches y coordinate of the circling green point. Moon x coordinate matches x coordinate of same circling point. No complicated math required. Mimas also rotates.
By making the moon bigger or smaller, we simulate a z axis. The moon seems to come closer or further away. Seems as if we are transposing the y position of the circling sprite to a z axis, but we are just setting moon size to match the y coordinate of the green circling point. Part of our science-art box on pendulums and heavenly harmony. Mimas rotates by changing costumes. In reality, the same side of Mimas always faces Saturn. It's rotation period is synchronous to its orbital period, which means it keeps one face constantly pointing towards the planet. It is hard to get that to happen exactly here. Mimas and Saturn are not to scale. See our related model on circles, pendulum, and sine wave: https://scratch.mit.edu/projects/500868935/