Behind the science
A planet obeys Newton’s inverse-square gravitation: acceleration points toward the star and scales as 1/r². Changing gravity, launch speed or orbital radius changes the specific orbital energy and produces circular, elliptical or escaping trajectories. This is a symplectic numerical approximation in idealized units.