Ashes of the Singularity II pathfinding runs on a navigation graph of connected cells, searches it with A*, and then hands the result down through three layers of movement, which is why the same army can arrive as a single formation or trickle in one piece at a time.

How Ashes of the Singularity II Pathfinding Works

Pathfinding starts at the top with armies, which are composed of units, and each unit is not necessarily a single vehicle or soldier but a small squad whose individuals are called elements.

The world is broken into connected points or cells that show where movement is allowed and how different areas link together. Even a Small map contains around 150,000 of these cells, which is why pathfinding cost is managed deliberately rather than left to run on every unit every frame.

The search itself is A*. A* looks at how far an entity has already travelled and makes a good guess about how much farther it still needs to go, which is what lets it find a route across a continent-sized map without checking every cell.

Three Tiers of Movement

Pathfinding is resolved in order, and each tier hands its result down to the next.

  1. Army — the army computes its path, and that path is then cleaned up, straightening out wiggly parts and removing extraneous points.
  2. Unit — the army establishes the formation it will adopt on arrival and passes the destination formation points down to the units, and each unit then tries to reach its own slot, by a straight line when the terrain allows, which is always the case for flying units, falling back to A* when terrain blocks it.
  3. Element — the individuals chase their unit's formation positions as a local goal, constantly updating their movement and making decisions multiple times each second.

Each tier actually does pathfinding using slightly different algorithms, chosen for optimisation at that level.

Traffic, Clumping and Narrow Passes

Movement quality is a real battle factor rather than a background detail. Since the Steam Next Fest demo the studio has been working on keeping units from clumping up, improving traffic control through tight spaces, and giving bigger units the priority to shove their way through smaller units when they need to.

Player reports from the demo build described the result in strong terms: on the smaller alpine map with mountains, armies beyond the smaller starting ones struggled to manoeuvre the narrow paths in a timely way, and on the tundra map units had trouble following routes, with traffic jams and units getting lost along the way.

The practical lesson for a player is that terrain is not just a firing-angle decision. A pass that looks walkable can be a queue, and a formation that has to squeeze through one is both slow and easy to shell. The chokepoint and high ground guide covers how to fight in and around exactly those places.