Overview
Flow Field Pathfinding computes cost-to-go values from a goal and stores the best local direction for each grid cell.
Guides many agents toward a goal by precomputing a direction field over a grid.
Compact metadata for implementation and discovery.
Flow Field Pathfinding computes cost-to-go values from a goal and stores the best local direction for each grid cell.
Quick facts
Runtime and memory behavior at a glance.
Best
O(G)
Average
O(G log G)
Worst
O(G log G)
Space
O(G)
direction[cell] = argmin_neighbor(cost[neighbor])Chooses the neighbor that most reduces remaining path cost.
Show a grid of arrows pointing downhill through the cost field toward the goal.
It works best when many agents reuse the same destination or cost field.
What each reference supports for this entry.
Game AI reference covering Flow Field Pathfinding implementation model, many-agent navigation use case, and grid-field propagation behavior.
Good next jumps from the relationship graph, ranked for useful discovery.
Flow fields support many agents moving toward common goals.
Flow fields often compute distances from a destination using Dijkstra-style expansion.