Scene

Peg field

A fixed opening guarded by concentric crowns of pegs, each rotated against the previous one. There is no straight corridor to the exit.

Open Peg field in the editor
Climax frame of the Peg field scene, drawn by the engine
Frame drawn by the real engine at the moment of highest event density of the best seed in the sample.

Parameters

The same controls as the editor, with the same range. The default is what the example page uses.

ParameterRangeDefault
Peg crowns1 – 32
Pegs per crown4 – 169
Gap15 – 12045
Balls1 – 82
Gravity0 – 4012
Bounciness0 – 10.94
Initial speed0 – 305
Growth per collision0 – 0.20

How it usually ends

Measured by the engine with the default configuration over a fixed sample of seeds. No number here is an estimate.

Seeds in the sample
40
Escapes
20%
Settles
55%
Times out
25%
Collisions (median)
106
Duration (median)
30.6 s
Climax (median position)
8%
The fraction of the video where event density peaks. Close to 100% means the best moment is at the end.

Seeds that end well

No seed in the sample reached the search threshold. These are still the best ones.

  1. seed1792738score 68 out of 100118 collisions27 ssettledOpen seed 1792738 in the editor
  2. seed3049486score 65 out of 100123 collisions30.1 ssettledOpen seed 3049486 in the editor
  3. seed3154215score 54 out of 100109 collisions26.5 ssettledOpen seed 3154215 in the editor
  4. seed1478551score 48 out of 100117 collisions29.1 ssettledOpen seed 1478551 in the editor
  5. seed2421112score 46 out of 10012 collisions6.4 sescapeOpen seed 2421112 in the editor

Frequently asked questions

How do I make a Peg field video?

Open the scene in the editor, adjust the parameters, try a few seeds and export to MP4. Rendering happens in your browser and costs nothing.

Why does the same seed always give the same video?

The simulation is deterministic: fixed-step physics and seeded random numbers. The same seed with the same parameters reproduces the same video on any machine.

How long is a Peg field video?

The video ends when the scene ends. The median duration measured in the sample is in the outcomes section, and the seed search shows each candidate's duration before rendering.

Can I use the video on TikTok, YouTube and Instagram?

Yes. The export is a vertical video with audio, ready for Shorts, Reels and TikTok. On the free plan it carries a discreet watermark.

How do I pick a seed that ends well?

Use the editor's seed search: it simulates dozens of variations without drawing and ranks the ones with a late climax. The seeds on this page came from the same heuristic.

Make your own variation

Open the scene in the editor with one of the seeds above, or let the search find another.

Open Peg field in the editor