Sun
Comet nucleus
Dust/ion tail (anti-solar)
This 2D companion replaces the original's fixed angular step with real Keplerian mechanics: each comet's true anomaly is integrated from a conserved angular momentum, so orbital speed correctly peaks at perihelion and drops at aphelion, and the dust/ion tail is recomputed every frame to point straight away from the Sun with a length that grows as the comet nears it — the same solar-wind sublimation effect that gives real comets their brightest tails at closest approach.