Force, mass and acceleration
Newton's second law a = F/m, and Newton's first law: when the force stops, the velocity stays constant unless something (here, optional drag) removes it.
Loading simulation…
What it demonstrates
Newton's second law a = F/m, and Newton's first law: when the force stops, the velocity stays constant unless something (here, optional drag) removes it.
How it works
A block slides on a frictionless track. Each 1 ms step computes a = (F − b·v)/m and advances velocity and position with semi-implicit Euler. In the default mode the force acts for 2 s and is then removed, so you can see acceleration drop to zero while velocity stays where it was.
The camera follows the block. Block size scales with the cube root of mass, as it would for a constant-density material.
Adjustable parameters
- Force mode: 2 s push or constant
- Applied force F (−20 to 20 N)
- Mass m (0.5–20 kg)
- Viscous drag b (0–5 N·s/m)
Known limitations
- One degree of freedom with no friction. The friction experiment adds Coulomb friction.
- Drag is linear in velocity. Air drag at everyday speeds is closer to quadratic.
Equations
Core update rule
applied = t < pushDuration ? F : 0;
a = (applied - b * v) / m; // Newton's second law
v += a * dt;
x += v * dt;Explained in Chapter 2: Physics Engines