Skip to game

G&T / 05Interactive demo

2D Verlet Physics Sandbox

Pull a pinned rope, sever a link, and watch how distance constraints redistribute the motion.

Try this demo

  1. Go to the controls

    Press Step and move a free point using the controls or the rope display.

  2. See what changed

    Switch to Cut link and compare the active-link count and motion. Reset restores the starting rope.

How it works

Positions drive the simulation

Every 1/60 second, the solver uses each point’s current and previous positions to infer its motion. It applies gravity, then iteratively moves connected points back toward their original spacing. The square endpoints stay pinned. Cutting a link removes that distance constraint from the solver.

Max link error is measured in scene pixels across the remaining links. Dragging a point far from its neighbors can temporarily increase this error. Reset restores the same starting positions and links.