Primitives
SaveLabExperimentsApproach

Instruments

Time0.00 s
Bodies0
Kinetic E0.00 J
Excess KE0.00 J
Potential E0.00 J
Total E0.00 J
Momentum0.00
Ang. mom.0.00
Max speed0.00 m/s
Gravity9.81 m/s²
FPS60
Gravity9.81m/s²
Speed1.00×
built on founden.ai
Experiments/Fundamentals

Orbit simulation: inverse-square gravity and ellipses

Three steel balls circling a fixed star under true 1/r² gravity. The inner ones go round faster, the slow one traces an ellipse, and you can throw them all.

Inverse-square gravity

F = G m₁m₂ / r², v = √(μ/r)

F
gravitational force between star and body (N)
G
gravitational constant
m₁
mass of the star (kg)
m₂
mass of the orbiting body (kg)
r
distance between their centres (m)
v
speed for a circular orbit (m/s)
μ
the star's gravitational parameter, Gm₁ (m³/s²)

What you are watching

Downward gravity is off; the only force is the star's inverse-square pull. Two balls start 2.2 m and 3.6 m out at circular-orbit speed, lapping in about 2.7 s and 5.6 s. The third starts 4.8 m out at 78% of circular speed, so it falls inward on an ellipse whose closest point, about 2.1 m out, lies inside both other paths.

Because the paths cross, sooner or later that ball collides with a neighbour and the orbits rearrange. Through it all, the Ang. mom. readout, measured about the star, does not change.

Why it happens

Gravity, F = Gm₁m₂/r², supplies the centripetal force of a circular orbit: Gm₁m₂/r² = m₂v²/r, so v = √(μ/r) with μ = Gm₁. The orbiting mass cancels. Closer orbits are faster and their periods shorter, T ∝ r^(3/2) (Kepler's third law).

At other speeds the orbit is an ellipse with the star at one focus. Gravity points at the star, so it exerts no torque about it: angular momentum is conserved, and a body sweeps equal areas in equal times, fastest at its closest point.

Limits: μ is set for this world (60 m³/s²), the balls feel only the star, and the pull is softened within 0.25 m to stay finite at the centre, which leaves the circles a whisker off round and makes the ellipse slowly precess.

Try this

  1. Pick the circle tool, press about 3 m from the star and drag at right angles to the line to it. Five times the drag length is the launch speed; circular speed there is √(60/3) ≈ 4.5 m/s, so drag about 0.9 m for a near-circle, less for an ellipse.
  2. Throw a circular orbiter forward along its path. Its orbit stretches outward; beyond √2 times circular speed it escapes until the wall stops it.
  3. Watch Ang. mom. through collisions between the balls. It stays fixed: neither the star's pull nor the balls' pushes on each other exert a net torque about the star.

Questions

Why do closer planets orbit faster?

Gravity is stronger closer in, so more sideways speed is needed to keep falling around the star instead of into it: v = √(GM/r). With the shorter path, this gives Kepler's third law, T² ∝ r³.

Why are orbits ellipses?

Under an inverse-square force every bound orbit is an ellipse with the attracting body at one focus; a circle is the special case.

More fundamentals experiments

  • SandboxNewton's laws
  • ProjectileProjectile motion
  • PendulumEnergy exchange
  • Double pendulumDeterministic chaos
  • Newton's cradleConservation of momentum
  • Elastic collisionConservation of momentum
  • TowerCentre of mass
  • Ramp & frictionFriction
  • SpringsHooke's law
  • Pendulum waveSimple harmonic motion
  • RopeTension
  • Rope vs rodBending stiffness

All 57 experiments

Primitives logoPrimitives

A real-time physics engine you experiment with directly. Real Newtonian mechanics, in SI units, in your browser.

Product

  • Engine
  • Experiments
  • Lab sheets
  • Lab
  • Approach
  • Notes

Legal

  • Privacy Policy
  • Terms of Service

Contact

  • support@primitives.im
© 2026 Primitives. All rights reserved.