Apply a force to an object and it accelerates, more slowly if it is heavy. Sum several forces — gravity, wind, friction, air resistance — and you get surprisingly realistic motion. Point gravity between bodies leads to orbits, slingshots and the chaotic three-body problem, where tiny changes in the starting positions lead to completely different futures.
Scale it up to thousands of stars and two colliding galaxies throw out tidal tails, the long arcs you see in Hubble photographs. Fill a box with colliding particles and the Maxwell–Boltzmann distribution of speeds appears on its own.
Every simulation below runs right here in your browser, for free, with live controls. Open one, change the sliders, and use the mouse — most of them respond to it.
Forces simulations
Forces: Gravity, Wind, Friction & Drag

By Newton's second law, acceleration = force / mass. Each frame every force is added into the acceleration, then it is cleared.
Try this: Hold the mouse beside the balls: small (light) balls fly, big (heavy) ones barely move.
Open Forces: Gravity, Wind, Friction & Drag →
Gravitational Attraction

Newton's law of universal gravitation: F = G·m₁·m₂ / d². Every body pulls on every other body (an n-body simulation), so orbits, slingshots and ejections emerge without being programmed.
Planets start with exactly the tangential speed needed for a circular orbit, v = √(G·M / r), but their pulls on each other slowly disturb those orbits.
Try this: Click and drag to launch a new planet. Drag direction and length set its velocity, like a slingshot.
Open Gravitational Attraction →
Elastic Collisions & Momentum

When two balls collide, the impulse acts along the line between their centres. Solving for it so that momentum Σ m·v is conserved (and kinetic energy too when e = 1) gives:
j = −(1 + e)(v_rel · n) / (1/m₁ + 1/m₂)
Try this: Load "Newton's cradle row", then grab and throw a ball. Watch the momentum readout stay constant between wall hits.
Open Elastic Collisions & Momentum →
The Three-Body Problem

Two bodies under gravity follow neat ellipses. Add a third and there is, in general, no closed-form solution, and the motion is often chaotic. Yet special stable solutions exist, such as the famous figure-eight found in 1993 and proven in 2000.
This simulation uses velocity Verlet integration, which conserves energy far better than the simple Euler method of the earlier demo. The status panel shows how much the total energy drifts.
Try this: Load "Pythagorean (chaotic)", three bodies at rest with masses 3, 4 and 5. Watch them dance until one gets flung out.
Terminal Velocity & Parachutes

Falling objects speed up until air drag (which grows with v²) balances their weight. From then on they fall at a constant terminal velocity v_t = √(m·g / c). Heavy, compact objects have a high terminal velocity, while a feather or an open parachute have a low one.
Each column shows a falling object (the background scrolls past to show its speed). The chart plots speed over time, and dashed lines mark each theoretical terminal velocity.
Try this: Let the skydiver reach terminal speed, then press "Open parachute" and watch the sudden deceleration.
Open Terminal Velocity & Parachutes →
Colliding Galaxies

A full n-body simulation of a galaxy is far too slow, but a classic trick from 1972 (the Toomre brothers) captures the essentials. Treat each galaxy as one massive core plus thousands of massless stars. Stars feel the cores but not each other, so the cost grows only linearly.
When the two cores swing past each other, tidal forces fling stars into long tails and bridges, just like real interacting galaxies such as "The Antennae".
Try this: Make galaxy B counter-rotating and compare the tails. Prograde encounters make far longer ones.
Ideal Gas & Maxwell–Boltzmann

Give every particle in a box exactly the same speed. After a few collisions the speeds spread out into the Maxwell–Boltzmann distribution, the bell-ish curve drawn over the histogram. Nobody imposed it: it is simply the most likely way to share the energy.
Temperature is the average kinetic energy, and pressure is momentum delivered to the walls per unit length. Squeeze the box with the volume slider and pressure rises (PV ≈ NkT). Turn on the heater and particles bouncing off the left wall leave with the heater's temperature.
Try this: Watch the histogram in the first few seconds, as the spike melts into the curve.
Open Ideal Gas & Maxwell–Boltzmann →
Gravity Field & Potential

Instead of tracking bodies, look at the field they create. Every point in space has a gravitational potential (the colour map, dark = deep well) and a field vector (the arrows) pointing downhill. The field is the negative gradient of the potential.
Test particles you launch just roll through this landscape. Where wells overlap you get saddle points (Lagrange points), where a particle can briefly balance between two masses.
Try this: Click to add masses, right-click to remove one, and drag elsewhere to launch a test particle.
Open Gravity Field & Potential →
Evolve them into something new
Several of these are already evolutions: Elastic Collisions & Momentum grew out of Forces: Gravity, Wind, Friction & Drag; The Three-Body Problem grew out of Gravitational Attraction; Terminal Velocity & Parachutes grew out of Forces: Gravity, Wind, Friction & Drag; Colliding Galaxies grew out of Gravitational Attraction. In Labs you can take any of them a generation further: press Evolve this, get suggestions for what the next version could add, and build the one you like — or combine two or three simulations into one system.
Make your own simulation →
Pick forces as a concept, choose an art piece, game, explainer or experiment, and Labs suggests ideas and builds the one you choose.