Flow fields

When many agents share goals, one search serves them all: a flow field holds, for every cell or polygon, its cost to the nearest goal and the way to go next. Agents then read their way in constant time instead of searching each.

Over a grid

Over a navmesh

Both kinds draw as arrows into a debug buffer.