Skip to content
Physical AI
All experiments

Static vs kinetic friction

Friction is not a fixed force. At rest it takes whatever value is needed to prevent motion, up to μs·N. Once the block slides, friction drops to μk·N and opposes the velocity.

Loading simulation…

What it demonstrates

Friction is not a fixed force. At rest it takes whatever value is needed to prevent motion, up to μs·N. Once the block slides, friction drops to μk·N and opposes the velocity.

How it works

The block sits on an incline. The normal force is N = m·g·cos θ and gravity pulls along the slope with m·g·sin θ. While the block is stuck, the simulator checks whether the sum of the applied force and the gravity component exceeds μs·N. If not, friction exactly cancels them and nothing moves.

When the limit is exceeded the block breaks loose. Friction then becomes −μk·N·sign(v), and Newton's second law is integrated. If the velocity crosses zero inside a step, the block is stopped and the static check runs again. In ramp mode the applied force grows at 2 N/s, which shows the classic picture: friction rises with the push, peaks at μs·N, then drops to μk·N.

Adjustable parameters

  • Applied force: ramp at 2 N/s, or manual (−60 to 60 N)
  • Incline angle θ (0–45°)
  • Mass m (0.5–10 kg)
  • Static coefficient μs (0.05–1.2)
  • Kinetic coefficient μk (0 to μs)

Known limitations

  • Coulomb friction is an empirical model. Real friction also depends on velocity (the Stribeck effect), temperature, wear and contact time.
  • When the block reaches the end of the slope it is simply stopped. The end-stop reaction force is not shown.
  • Physics engines usually approximate the friction cone and soften the stick–slip switch. This explicit switch is a teaching model.

Equations

N=mgcos⁡θ,Fext=P−mgsin⁡θN = m g \cos\theta, \qquad F_{ext} = P - m g \sin\theta
stuck if ∣Fext∣≤μsN  ⇒  f=−Fext\text{stuck if } |F_{ext}| \le \mu_s N \;\Rightarrow\; f = -F_{ext}
sliding: f=−μkN sign⁡(x˙),mx¨=Fext+f\text{sliding: } f = -\mu_k N\,\operatorname{sign}(\dot x), \quad m\ddot x = F_{ext} + f
θslip=arctan⁡μs\theta_{slip} = \arctan \mu_s

Core update rule

if (stuck) {
  if (Math.abs(fext) <= muS * N) { friction = -fext; a = 0; return; }
  stuck = false;                      // breakaway
}
const dir = v !== 0 ? Math.sign(v) : Math.sign(fext);
friction = -dir * muK * N;
a = (fext + friction) / m;
const vNew = v + a * dt;
if (v !== 0 && Math.sign(vNew) !== Math.sign(v)) { v = 0; stuck = true; }
else v = vNew;
x += v * dt;

Explained in Chapter 2: Physics Engines