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
- Go to the controls
Press Step and move a free point using the controls or the rope display.
- See what changed
Switch to Cut link and compare the active-link count and motion. Reset restores the starting rope.
Guided play
Choose an experiment
Start with the baseline, compare one change, and then test a challenge. You can also use the lab freely below.
Pinned rope
Paused- Ticks
- 0
- Points
- 21
- Active links
- 20 / 20
- Max link error
- 0.00 px
Controls
Drag a free point on the grid, or select a point and use the arrows.
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.