DE EN FR ES IT

Adventure design

Walkable area

Also: walkbox, walk area, walk mesh

A walkable area, often called a walkbox, is the invisible polygon over the background that defines where the player character may move. Obstacles such as tables or fountains are holes cut into it, and pathfinding only plans routes inside it.

Walkable area with a hole and the shortest pathA trapezoid floor with a fountain cut out in the middle. The path from the start to the tapped target bends around two corners of the hole. Start Target (tap) Hole: fountain Walkable area (polygon) Path via polygon corners thin: visibility edges
Simplified diagram: the character stays inside the polygon; the shortest path bends at the corners of holes (this is how the Wurzelwerk engine’s pathfinding works).

Background

A painted picture has no idea where the floor is. Early adventures therefore laid chains of quadrilaterals over the image, the original walkboxes, and moved the character from box to box. Modern engines usually use a single polygon with holes, or a navigation mesh made of triangles.

Depth almost always comes with it: the higher up the screen a character stands, the further back it is and the smaller it is drawn. Walkable area, depth scaling and depth sorting have to match the perspective of the art, or the character floats above the floor or walks through furniture.

Common mistakes: entry points or hotspot walk-to points sit just outside the area, so the character stops in the wrong place; obstacles are cut too tightly, so feet end up inside furniture; or a narrow passage accidentally splits the area in two and part of the scene becomes unreachable.

How we do it

In the Wurzelwerk engine the walkable area is the walkArea field of a scene file, optionally several walkAreas that switch with game state. Pathfinding in nav.ts builds a visibility graph over the polygon's corners and runs Dijkstra on it to find the shortest route (see pathfinding).

For Tatort RMH we no longer draw walkable areas by hand. Blender exports raw floor data per scene; a tool subtracts obstacles with a margin for the character's width, projects the result into the image with a homography and fits depth as a straight line through measured character sizes. A preview draws the walkable area in green, holes in red and entry points in blue. Fixes go into the 3D kit, never into the scene file.

Related terms