Instead of using Kepler's Laws, which are quite useful and accurate for most two-body systems, this simulation calculates the motion of celestial bodies and spacecraft in small time steps and integrates gravitational acceleration from all celestial bodies currently in the simulation. (Spacecraft maneuvers work the same way too.) All geometrical and mathematical relations are based on numerical/infinitesimal-like calculations. This way, no movement happens "on rails", and perturbations from distant bodies and other effects are always accounted for. (However, if you wish, you can still make Kepler style orbit projections, determine apoapsis and periapsis and ascending nodes and all that; but if the perturbations are too high, the spacecraft wouldn't necessarily follow the calculated 2-body orbit path.)
0 commit comments