HomeAlgorithms & AIRRT* Motion Planning — Rapidly-Exploring Random Trees

RRT* Motion Planning — Rapidly-Exploring Random Trees

Interactive 3D RRT* (Rapidly-exploring Random Tree Star) motion-planning simulator: watch a search tree grow through random sampling around obstacles, rewire itself toward lower cost, and converge on a near-optimal path from start to goal.

Algorithms & AI3DAdvanced60 FPS📱 Mobile-adapted⇄ 2D version
planning-algorithms ↗ Open standalone

RRT and RRT* are sampling-based motion-planning algorithms that solve the "find a route from start to goal through obstacles" problem in continuous space, without ever building a grid or graph up front — the classic way this is instead handled by A*, Dijkstra or BFS. This simulator grows a real 3D rapidly-exploring random tree through a field of spherical obstacles: each iteration samples a random point, connects the tree's nearest node toward it with a fixed step, and rejects the extension if it collides. In RRT* mode two extra optimality passes run every iteration — choosing the cheapest nearby parent for the new node, then rewiring any neighbour that would get cheaper by routing through it — visibly straightening and shortening the tree's branches as more iterations run, exactly as it does inside real robot and vehicle motion planners.

⚙ Under the hood

Watch a 3D RRT/RRT* search tree grow through random sampling around spherical obstacles, choose the cheapest parent, and rewire itself toward an asymptotically optimal start-to-goal path.

RRTRRT-starmotion-planningpathfindingroboticsgraph-search

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)