HomeRobotics & KinematicsModular Self-Reconfiguring Robot 2D: Pivot-and-Anchor Lattice

Modular Self-Reconfiguring Robot 2D

A 2D side-view lattice of cube robot modules that reconfigure between shapes by pivoting 90 degrees around a stationary neighbor cell, exactly like MIT's M-Blocks — pick a target shape, watch the live pivot-and-anchor scheduling algorithm plan and animate every move, and toggle overlays that expose the anchor rule and the BFS search itself.

Robotics & Kinematics2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-robotics-topic-100 ↗ Open standalone

Sixteen identical square modules occupy a 2D lattice and can only move one way: pivoting 90° around a corner shared with a stationary neighbor — the same "roll around your neighbor" locomotion used by MIT's M-Blocks, viewed edge-on. This simulator schedules a real pivot-and-anchor reconfiguration algorithm — pick Block, Wall, Staircase or Arch and watch the controller greedily assign each out-of-place module to the nearest open cell in the new shape, then breadth-first search a legal chain of floor rolls and anchored climbs to get it there, stalling and retrying modules whose path is temporarily blocked by a neighbor that hasn't moved yet. Toggle the anchor and BFS-frontier overlays to see the scheduling rule itself at work.

⚙ Under the hood

A 2D side-view lattice of cube robot modules that reconfigure between shapes by pivoting 90° around a stationary neighbor cell, exactly like MIT's M-Blocks, driven by a live pathfinding-and-anchor scheduling algorithm with anchor and BFS-frontier overlays.

roboticsmodular robotsself-reconfigurationpathfindingkinematicsswarm

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)