navex

Composable steering behaviors, flocking, flow fields & formations

Flocking

200 boids with Reynolds flocking. Adjust separation, alignment, and cohesion weights.
Click to add attractor. Right-click to add repulsor.

Steering

Click canvas to set target.
Seek: Full speed toward target.
Arrive: Decelerate near target.
Wander: Autonomous wandering.
Pursue/Evade: Predict moving target.

Obstacles

Click canvas to set seek target.
Hold Shift + click to place circle obstacles.
Hold Shift + right-click to place AABB obstacles.
20 agents seek target while avoiding obstacles.

Flow Field

Click canvas to set flow target.
Shift + click to toggle blocked cells.
BFS generates directions toward the target. 50 agents follow the field.

Formations

Click canvas to move leader.
12 followers arrange into formation patterns around the leader.

Loading WASM...