← Library · Core concept

Pathfinding Algorithms

Pathfinding algorithms determine the most efficient route for an AI agent, often a Non-Player Character (NPC), to travel from one point to another within a game environment. These algorithms, like A* search, consider factors such as obstacles, terrain, and desired destinations to calculate optimal paths. They are crucial for creating convincing movement and navigation for AI characters, allowing them to traverse complex maps realistically.

In plain terms

Think of GPS in your car, but for a game character trying to find its way through a bustling city full of buildings (obstacles) and one-way streets (movement restrictions).

Why it matters

Realistic AI movement is paramount for believable characters and engaging gameplay, preventing NPCs from getting stuck or acting illogically.

Learn one new AI thing every day.

Daily Deck sends you seven plain-English cards like this every morning. Free.

Start free