HeatmapPathfinding

source code

A demo showcasing an efficient method to have a lot of objects path to one target, using a heatmap. Inspired by this Gamasutra article.

Controls:

  • Drag objects to place them
  • Elephants seek the McGuffin when placed
  • Click to add or remove walls