Home▸Physics & Mechanics▸Comet Orbit (2D)

Comet Orbit (2D)

Top-down 2D companion to the 3D comet orbit simulator: an exact Kepler-equation ellipse with an adjustable eccentricity, and a particle-based ion + dust tail that always streams away from the Sun no matter which way the comet is moving.

Physics & Mechanics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-3d-comet-orbit ↗ Open standalone

This top-down companion to the 3D comet orbit simulator strips the same real orbital mechanics down to a flat plane: a highly eccentric Kepler ellipse whose swept area stays exactly constant per unit time, with speed that visibly surges near perihelion and eases off near aphelion under the vis-viva equation. Two independent particle tails — a fast straight ion stream and a slower, gently curved dust stream — are spawned every frame along the Sun-to-comet direction, so the tail always trails away from the Sun and never gets confused with the comet's direction of travel, exactly as a real cometary tail behaves under solar wind and radiation pressure.

⚙ Under the hood

A top-down 2D companion to the 3D comet orbit simulator: an adjustable-eccentricity Kepler ellipse with vis-viva speed, and a particle-based ion and dust tail that always streams away from the Sun regardless of the comet's direction of travel.

cometorbital mechanicsKepler's lawseccentricityvis-vivacomet tailsolar wind

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)