Navigation and Level Data
A simulation cannot trace against the level’s meshes while it runs: the physics a trace reads is not deterministic. Instead, the editor traces the level once and saves the result as level data, a grid of cells that every machine loads identically. Navigation and fog of war both read it.
This page covers how the grid is made and what a unit does with it: the level volume and its bake, the grids, the unit’s footprint, terrain types, and blockers that appear while the match runs.
The level volume and the bake
Section titled “The level volume and the bake”A Sein Level Volume marks the playable area. Place one from Place Actors and scale it so its box covers the ground units may walk on, and extends well above and below the surface. Place several to cover an irregular map. The bake covers their union.
Select a volume and press Bake Level Data (in the details panel’s Bake group). The bake:
- Casts one downward trace per grid cell, starting 200 units above the top of the volumes, to find the ground height and slope.
- Runs each system’s layer on that shared result: navigation decides which cells are walkable and how cells connect, and fog of war measures sight blockers.
- Saves everything as a level data asset named
LevelData_<LevelName>in the Save Folder (/Game/SeinARTS/LevelDataby default) and sets it as the Baked Asset of every volume in the level.
The trace tests the Bake Trace Channel (Visibility by default), so level geometry must block it. It skips placed Sein actors that have a movement component, because units must not carve themselves into the map, and static ones whose Extents opt out (see Dynamic blockers).
Baked data is generated. Do not check it in, and rebake when the ground, a static obstacle or a volume changes. Every player’s build must come from the same bake. See Create the First Level for the steps in the demo.
A volume also carries a few per-area overrides, under SeinARTS in its details:
| Setting | Meaning |
|---|---|
| Override Cell Size / Cell Size | Navigation cell size for the level. The first volume’s value wins |
| Override Max Step Height / Max Step Height | The tallest step a unit can climb |
| Override Vision Cell Size / Vision Cell Size | Fog cell size |
| Bake Static Blockers | Whether the bake stamps walls and buildings into the fog grid |
| Minimap Override Texture | Hand-made minimap art in place of the generated one |
Three sizes govern the grid. Set the defaults in Project Settings > Plugins > SeinARTS: Cell Size and Max Step Height under Navigation, Vision Cell Size under Fog Of War.
| Setting | Default | Meaning |
|---|---|---|
| Cell Size | 100 | Width of one navigation cell in world units. Roughly your smallest unit’s body |
| Max Step Height | 50 | Two neighboring cells whose heights differ by more than this are not connected. This is a wall edge to units |
| Vision Cell Size | 100 | Width of a fog cell. It snaps to a whole multiple of the navigation cell |
Cell Size trades detail for cost. Halving it makes four times as many cells, so memory, bake time and search work all grow. A 20,000 by 20,000 unit map is 200 by 200 cells (40,000) at 100, and 400 by 400 (160,000) at 50. A game of large units can use far bigger cells. Max Step Height is typically about half the cell size: 30 lets units mount a curb but not a wall.
The bake also treats a surface steeper than 45 degrees as blocked. It removes walkable islands smaller than Min Walkable Island (cells) (16 by default, in the Navigation settings), which stops wall tops and cube tops from becoming pathable, and blocks flat-topped obstacle surfaces that sit above the ground units can reach.
Navigation itself is chosen with Navigation Class in the Navigation settings. The default is a grid A* search that routes a unit through cells its body fits in, then smooths the route along straight lines. Set the class to None and every Move order fails, so only do that if you supply your own pathfinding. Level Data Class None turns the bake off.
Footprints and acceptance
Section titled “Footprints and acceptance”A route is planned for the unit’s body, not a point. The unit’s footprint radius is the largest bounding radius of its Sein Extents shapes (a capsule’s radius, a box’s half diagonal). Without Extents, the planner falls back to Fallback Footprint Radius on Sein Navigation, 50 by default. Use a rough guide of 50 for infantry, 100 for wheeled vehicles and 150 for tracked ones. Collision and avoidance use the same radius. Formation spacing reads the same shapes, but counts a unit without them as radius 40.
The planner keeps the footprint clear of walls by ceil(radius / cell size + 0.5) cells. With 100-unit cells, a Soldier of radius 40 needs 1 cell and a tank of radius 140 needs 2. A small rounding guard pushes a radius exactly on the boundary up a cell, so radius 150 needs 3. Wall Padding (cells) adds more: 0 is a tight fit, 1 gives steering slack, 2 or more suits vehicles that need turn room. A high padding can make a narrow corridor unreachable for that unit, because the unit really does not fit.
Settings on Sein Navigation that shape a route:
| Setting | Default | Meaning |
|---|---|---|
| Fallback Footprint Radius | 50 | Body radius when the unit has no Extents |
| Wall Padding (cells) | 0 | Extra clearance from walls |
| Acceptance Radius | 50 | How close to the destination counts as arrived |
| Nav Layer Mask | Default | Which blocker layers affect the unit |
| Blocked Terrain Tags | empty | Terrain the unit cannot cross at all |
| Repath Mode | Periodic Route Check | What makes a moving unit plan again |
| Repath Interval | 0.25 | Seconds between route checks, and the shortest gap between replans |
| Max Search Nodes | 0 | Cap on search work for one request. 0 uses the project default |
Acceptance Radius is the unit’s own choice. Raise it for a vehicle that cannot turn tightly, and lower it for infantry that should land on a slot. It ends a move (see Movement).
Orders to ground that cannot be walked do not fail. When a destination is off the walkable area, the planner searches outward for the nearest walkable cell, up to Projection Max Ring Radius (cells) (30 by default), and picks only cells within Projection Elevation Tolerance (100) of the clicked height, so a click on a platform does not land on the floor below.
Route requests are batched. With Async Pathfinding on (the default), a unit receives its route on the tick after it asks, and the planner runs at most Path Requests Per Tick Budget (32) searches a tick, queueing the rest in a fixed order. A 50-unit selection therefore gets routes over about two ticks, which at 30 ticks per second is not visible.
While moving, a unit with Periodic Route Check looks at the next stretch of its route every Repath Interval. It plans again when something now blocks it, such as a building that just finished. Mode Requests Replans skips that check and leaves replanning to the movement mode. Either way, a move that stops making progress replans (see Movement).
Navigation layers
Section titled “Navigation layers”A layer says which blockers affect which units. There are eight bits. Default is bit 0, and always exists. Seven extra slots are named in Navigation > Layers, all disabled until you enable them: for example Amphibious or Heavy Vehicle.
A blocker affects a unit when their masks share a bit. A unit’s mask is Nav Layer Mask on Sein Navigation. A blocker’s is Blocked Nav Layer Mask on its Sein Extents. An amphibious unit that drops the Default bit and adds an Amphibious bit walks straight through a blocker authored as Default only. A unit with several bits is stopped by any blocker that shares one. Only append layers or rename them: inserting one in the middle shifts every later bit and breaks saves and replays.
Terrain types
Section titled “Terrain types”A terrain type tags an area of the map. Three independent numbers describe how it treats units, and they live together in Project Settings > Plugins > SeinARTS > Terrain > Terrain Types.
| Field | Default | Dial | Effect |
|---|---|---|---|
| Terrain Tag | The key, under SeinARTS.Terrain, such as SeinARTS.Terrain.Mud |
||
| Nav Cost | 1 | Route | The cell search multiplies the cost of crossing a cell by this (1 to 254). Higher makes it prefer other cells |
| Speed Multiplier | 1 | Speed | Scales a unit’s top speed on this terrain. Below 1 is slow ground, above 1 is a road. Floored at 0.05 |
| Vision Multiplier | 1 | Vision | Scales the sight radius of a unit standing on it. Floored at 0.05 |
| Physical Materials | Surfaces that resolve to this type at bake | ||
| Debug Color | The tint in the terrain debug overlay |
The three dials are separate on purpose. Nav Cost only steers the cell search. The route is then straightened along any line clear of blockers, and terrain cost does not break a line, so a costly patch on open ground gets crossed in a straight line. Cost decides a route when obstacles force its turns, such as which of two gaps in a wall a unit takes. A cost can never reach zero, so a cheap road does not attract units on its own: it is cheaper than the surrounding terrain only if that terrain costs more. And no cost makes a cell impassable. A unit is stopped by blocking geometry, or by listing a terrain tag in its own Blocked Terrain Tags. That is a hard rule for that unit only.
Terrain comes from two sources, both written into the grid at bake:
- Physical materials. List a physical material on the type. Any cell whose surface uses it, such as a painted landscape layer or a mesh material, becomes that type.
- Sein Terrain Volume. A placeable volume with a Terrain Type tag and a Priority. It overrides the material-derived type inside its brush. Where volumes overlap, the highest priority wins.
Index 0 is the built-in Default type: cost 1, no tag, and it is not in the list. After changing the list or adding terrain, rebake. See Add terrain and vision layers for a worked setup.
Dynamic blockers
Section titled “Dynamic blockers”The bake captures what is permanent. Things that appear or disappear during a match block navigation another way. On Sein Extents:
| Setting | Meaning |
|---|---|
| Bakes Into Nav | Static geometry such as walls and props is stamped into the bake. Mobile units are skipped |
| Blocks Nav | The footprint blocks routes at run time while the entity exists |
| Blocked Nav Layer Mask | Which layers it blocks. Default blocks the Default bit |
Use Bakes Into Nav for what is placed in the editor and never moves. Use Blocks Nav for what spawns and dies in the match: a building, a barricade. The navigation receives the complete list of blockers every tick, and a blocker carries its entity, so a unit planning from inside its own footprint does not trap itself.
A unit that has Sein Navigation but no Sein Extents blocks navigation as a disc of its Fallback Footprint Radius. Give such a unit Extents with Blocks Nav off if it should not block.
Nav blocking and collision are separate. See Collision and Extents.
Reading navigation from Blueprint
Section titled “Reading navigation from Blueprint”The navigation library answers questions about the grid from any simulation graph:
| Node | Use |
|---|---|
| Find Path | Plan a route for a unit |
| Is Location Reachable | Whether a route exists |
| Is Position Clear | Whether a unit could stand here now, counting current blockers |
| Nav Raycast | Whether a straight line is blocked |
| Get Cell Height At | Ground height at a point |
| Get Terrain Type At / Get Terrain Tag At | The terrain under a point, by index or tag |
| Get Random Reachable Point | A deterministic random point a unit can reach |
| Get Cell Size | Cell size, 0 with no navigation |
To refuse an order to an unreachable point at issue time, turn on Requires Pathable Target (under Targeting) on the ability. The command is rejected with SeinARTS.Command.Reject.PathUnreachable.
Seeing the grid
Section titled “Seeing the grid”Run Sein.Nav.Show in the console to draw walkable and blocked cells and the paths units follow. Sein.Nav.Show.Layer <bit> filters the blockers to one layer. Sein.Show.Steering draws each unit’s footprint ring and velocity, and Sein.Show.Extents its Extents shapes. See Console commands.
Example: a bridge
Section titled “Example: a bridge”A level volume 16,000 units across covers a map with a river and one bridge, with the default Cell Size of 100.
- The bridge deck is 300 units wide: three cells. A Soldier (radius 40) needs 1 cell of clearance from a wall, so it can use all three cells. The middle cell is 2 cells from either edge, which is what a tank (radius 140) needs, so the tank crosses single file along the center. Give the tank Wall Padding (cells) of 1 and it needs 3 cells of clearance, which no cell on the deck has, so the planner will not send it across.
- The river’s cells have no ground at the trace channel, so they are not walkable. A click on the water sends units to the nearest bank.
- A Sein Terrain Volume over the bridge approach with type
SeinARTS.Terrain.Road, Speed Multiplier 1.5, makes a Soldier of Speed 350 cross at 525 units per second. - A barricade the player builds has Blocks Nav on its Extents. When it finishes, units mid-route notice at the next route check and path around it.
Common mistakes
Section titled “Common mistakes”- Not rebaking. Moved geometry, a new volume or new terrain types do nothing until you press Bake Level Data again.
- A volume that is too thin. The volume must extend above and below the ground. Cells outside it are out of bounds, and units cannot walk there.
- Geometry that does not block the trace. If the ground ignores the Bake Trace Channel, the bake finds nothing. Point the setting at a channel it blocks.
- A cell size far bigger than the units. Paths get coarse, and small gaps vanish. A cell size far smaller than needed costs memory and bake time.
- Expecting terrain cost to slow units. Nav Cost changes the route. Speed Multiplier changes the speed.
- Expecting a cheap road to attract units. Cost starts at 1 on open ground, and cannot go lower.
- A terrain tag that is not in Terrain Types. A volume whose tag is not in the list resolves to Default and has no effect.
- Blocking with a mask the unit does not share. A Blocks Nav obstacle with Blocked Nav Layer Mask on bit 3 never stops a unit whose Nav Layer Mask is Default only.
- Wall Padding too high. A corridor narrower than the unit plus padding becomes unreachable.
- Different bakes on different machines. Every player’s build must come from the same bake, or their simulations differ.
Related
Section titled “Related”- Create the First Level for the volume and bake in the demo
- Movement for what a unit does with a route
- Collision and Extents for blockers and bodies
- Fog of War for the vision grid and Vision Multiplier
- Add terrain and vision layers
- Level reference, Navigation reference, Level settings and Navigation settings