How mass shapes the field
The field of a source mass M points toward it. At distance r its strength is g = GM/r². Double the distance and the field becomes four times weaker. With several sources, their field vectors add.
How the masses move
A test mass m feels the force F = mg. Dividing by m gives the same acceleration g for every test mass at that position. Source masses also accelerate toward each other. Test masses respond to the field without contributing to it. When source masses touch, they combine, conserving total mass and momentum.
Velocity matters as well as acceleration. A sideways velocity can carry a mass around another as gravity continually bends its path. Changing the playback speed lets you watch that motion unfold over simulated days.
The potential display shows gravitational potential energy per unit mass. A single source contributes Φ = −GM/r, measured relative to zero at infinity.
Canvas controls and scale
Drag the background to pan. Scroll or pinch to zoom. The ruler and position controls use astronomical units (AU). Masses are measured in Earth masses (M⊕). The Pair preset starts two bodies of 4 M⊕ about 0.016 AU apart in a circular orbit. The enlarged body markers set the contact distances in this model.
Drag a mass to reposition it with its velocity preserved, or drop it on the trash button to remove it. Select a mass to edit its horizontal and vertical velocity in km/s. The teal arrow shows its direction of motion.
Adjust the time scale in the Simulation controls. Time: 1,000,000 simulated seconds per real second.