Each nanobot performs a 2D random walk (Brownian motion). When two bots from different clusters drift within bonding range, they latch together with a probability set by the bond-strength and thermal-agitation sliders. Bonded clusters then move together (with per-cluster mass-scaled inertia and jitter) and can go on to merge with other clusters, building up larger structures over time.
P(bond) = bondStrength · exp(−temperature / 60) · dt · 6
cluster jitter ∝ (1.5 + temperature·3) / sqrt(clusterSize)
bonded fraction = (bots in clusters size > 1) / totalBots
- Thermal agitation — higher values add more random jitter to every cluster and make new bonds less likely to stick, mimicking thermal noise disrupting weak bonds.
- Bond strength — baseline probability that two nearby nanobots latch when they meet.
- Nanobot count — how many independent units wander in the chamber.
- Bond range — the capture radius within which two bots can bond; wider range accelerates assembly.
- Histogram panel — live distribution of cluster sizes (log-scaled bars).
- Trend panel — bonded fraction over time, showing the assembly curve rise and plateau.
Real-world relevance: this bond-probability-vs-agitation trade-off is exactly the design challenge in DNA-origami and nanobot-swarm self-assembly, where researchers tune temperature to get orderly structures instead of disordered clumps.