A character that walks around a wall instead of directly into it may seem intelligent, but it does not need a large language model to do so. Traditional game AI often solves a very specific problem: how to move through a world that has rules, obstacles and other moving characters.

Navigation meshes: a map of possible movement

A navigation mesh represents areas where an agent can travel. Rather than reason about every point in a complex visual scene, the navigation system works with a simplified representation of walkable space.

Imagine a small game level with two rooms and a corridor. A navigation mesh can represent the floors and the corridor while excluding walls. A character’s route to the second room can then be computed using that representation. Godot’s navigation mesh documentation explains how navigable areas relate to game geometry.

Three separate problems: route, movement and avoidance

Pathfinding determines a route. A movement controller makes the character follow it. Avoidance helps manage interactions with nearby moving objects. These are related but not interchangeable.

For example, two characters may find the same doorway on their routes. A valid route does not automatically guarantee that both characters can cross the doorway smoothly at the same moment. Avoidance and movement behavior have to handle that situation.

A small design exercise

Build a test level with a corridor, a central obstacle and two destinations. First test a single character moving to each destination. Then introduce another character. Observe whether either character gets stuck, takes an invalid shortcut or repeatedly changes direction.

Next, add an unreachable destination. Define what the character should do when no route is found. A game can respond by waiting, selecting another goal or showing a meaningful animation. A believable failure behavior is often as important as successful navigation.

Why more computation is not always better

A large crowd of agents does not necessarily need to recalculate every route on every frame. A useful design can update different groups at different times, while reserving immediate updates for events that actually change a route. Godot provides navigation performance guidance for developers.

Measure the frame-time impact on your own target hardware before making a performance claim. The complexity of the level, number of agents and update frequency all matter.

Where generative AI could fit

A language model might help a character choose a conversational response or propose a high-level goal. A conventional navigation system can still be responsible for deciding which paths are physically available. Combining approaches can be more controllable than expecting one model to solve every part of character behavior.

This conceptual guide uses Godot documentation and hypothetical game levels; no engine benchmark or gameplay test was conducted. Discover more in our gaming coverage.

For a complementary look at running AI systems efficiently, see our analysis of AI inference economics.