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.
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 drawn by my wife Kathy Keane. See this same model but where we have Mimas rotate: https://scratch.mit.edu/projects/502671708 See our related model on circles, pendulum, and sine wave: https://scratch.mit.edu/projects/500868935/