Navigation (grid A*, point graphs, navigation meshes, NavigationServer2D/3D, agents)
Status: shipped for 2D grids (Gameplay toolkit G3a, G3.1–G3.6; ADR 0227,
ADR 0228), including the tile map source (G3.6),
local avoidance (G3.7, ADR 0250) and 2D navigation meshes
(G3.9, ADR 0261) and async queries (G3.10,
ADR 0262, ADR 0263,
ADR 0264) and 3D grids with NavigationAgent3D (G3.11,
ADR 0263) and 3D navigation meshes baked with Recast (G3.12,
ADR 0264). G3.8 (grid polish) closed as not needed (the
owner agreed): its conditions did not arise. Every phase of the G3 proposal has shipped; its last open question is under
Open questions.
Godot 4’s navigation API on grids: AStarGrid2D and the point graphs AStar2D/AStar3D (plain classes, usable without
a tree), a NavigationServer2D with one map per World2D, the NavigationGrid2D region baked from static bodies or read
live from a TileMapLayer, and
NavigationAgent2D for path following, with ORCA local avoidance between agents and NavigationObstacle2Ds. Navigation
meshes (NavigationPolygon, NavigationRegion2D, NavigationLink2D) cover levels that are not grids: any shape, any
rotation, baked from the collision shapes. Queries and avoidance allocate nothing and give the same result on every run.

| Type | File (MainframeEngine/Src/Navigation/) | Role |
|---|---|---|
AStarGrid2D, GridSearch | AStarGrid2D.cs, AStarGrid2D.Jps.cs, GridSearch.cs | The grid pathfinder (A*, jump point search) and its search scratch |
AStar2D, AStar3D, PointGraph | AStar2D.cs, AStar3D.cs, PointGraph.cs | Point-graph A* (waypoints) |
NavigationServer2D, NavigationMap2D | NavigationServer2D.cs, NavigationMap2D.cs | The server, maps, sync, queries, post-processing (GridLineOfSight) |
NavigationPath2D, NavigationPathQuery2D | NavigationPath2D.cs, NavigationTypes.cs | A reusable query result; the query |
NavigationServer3D, NavigationMap3D, NavigationPath3D, NavigationPathQuery3D | NavigationServer3D.cs, NavigationMap3D.cs, NavigationPath3D.cs | G3.11: the 3D server, one map per World3D, the path and query |
NavigationGrid3D, NavigationAgent3D | Nodes3D/ | G3.11: a grid on the XZ plane at a height; path following in 3D |
NavigationMesh, NavigationRegion3D, NavigationMeshPartition | Meshes3D/NavigationMesh.cs, Nodes3D/NavigationRegion3D.cs | G3.12: a 3D navigation mesh resource (Recast settings, the baked polygons and Detour tile); its region node |
RecastBaker, DetourMesh3D | Meshes3D/ | G3.12 (internal): the bake (scene parse, DotRecast build) and a region’s runtime Detour mesh and queries — the only DotRecast callers |
GridPhysicsBaker3D, NavigationDebugDraw3D | Baking/, NavigationDebugDraw3D.cs | G3.11: the 3D grid’s bake through physics queries; the 3D debug draw |
NavigationPathRequest, NavigationQueryWorkers, NavigationPathMode | NavigationQueryWorkers.cs, NavigationTypes.cs | G3.10: an async query’s handle; the server’s workers; an agent’s path mode |
NavigationGrid2D, NavigationGridData | Nodes2D/ | The grid region node and its baked data resource |
NavigationAgent2D | Nodes2D/NavigationAgent2D.cs | Path following; avoidance settings and VelocityComputed |
NavigationObstacle2D | Nodes2D/NavigationObstacle2D.cs | An avoidance obstacle: a radius (moving) and/or a polygon |
Orca2D, AvoidanceSimulation2D | Avoidance/ | The ORCA solver (an RVO2 2.0 port, Apache-2.0, LICENSE-RVO2.txt) and each map’s avoidance step |
INavigationGridBaker, NavigationGridBakers, GridPhysicsBaker2D, TileMapLayerBaker | Baking/ | Where a grid’s cells come from |
NavigationPolygon, NavigationParsedGeometryType, NavigationSourceGeometryMode | Polygons/NavigationPolygon.cs | G3.9: a navigation mesh resource (vertices, convex polygons, outlines, bake settings) |
NavigationRegion2D, NavigationLink2D | Nodes2D/ | G3.9: a navigation mesh region; a link (jump, teleport) between two points of the mesh |
NavMesh2D, NavMeshSearch | Polygons/ | G3.9 (internal): the map’s mesh built at the sync; the polygon A*, funnel and point lookups |
NavigationPolygonBuilder, PolygonPartition, NavigationPolygonBaker2D | Polygons/, Baking/ | G3.9: outlines → convex polygons (Clipper2, ear clipping, Hertel–Mehlhorn); the scene parse |
NavigationDebugColors, enums | NavigationTypes.cs, NavigationDebugDraw.cs | Debug draw colours; GridDiagonalMode, GridHeuristic, GridPathStatus, NavigationPathPostprocessing, NavigationGridSource, NavigationWaypoint2D, NavigationLinkReached2D |
Navigation never calls Box2D.NET or Jitter2: the grid bake reads collision through PhysicsDirectSpaceState2D, the
navigation polygon bake reads the collision shape nodes.
AStarGrid2D
Section titled “AStarGrid2D”var grid = new AStarGrid2D { Region = new Rect2I(0, 0, 64, 32), CellSize = new Vector2(16), DiagonalMode = GridDiagonalMode.OnlyIfNoObstacles, DefaultComputeHeuristic = GridHeuristic.Octile, DefaultEstimateHeuristic = GridHeuristic.Octile };grid.Update(); // allocates storage + scratch; queries after it allocate nothinggrid.FillSolidRegion(new Rect2I(10, 0, 1, 24));grid.SetPointWeightScale(new Vector2I(4, 4), 3f);Span<Vector2I> path = stackalloc Vector2I[256];var status = grid.GetIdPath(new Vector2I(1, 1), new Vector2I(60, 30), path, out var count, allowPartialPath: true);- Layout.
Region(cells, at most 2048² =MaxCells),CellSize,Offset(cell (0, 0)‘s corner).GetPointPosition(id)is the cell centre (Offset + (id + 0.5) · CellSize),GetPointAt(position)its inverse. OnlyRegionmarks the grid dirty (IsDirty);Update()reallocates and clears the cells only when the region changed. Cells and queries throw on a dirty grid. - Cells.
SetPointSolid,IsPointSolid,SetPointWeightScale(≥ 0; weights are stored once one differs from 1),FillSolidRegion,FillWeightScaleRegion(clipped),ClearCells,Clear(empty region);SolidCount,WeightedCount, andVersion(bumped by every change). Solidity is aulongbitset. - Diagonal modes (Godot’s):
Always(even between two solid cells),AtLeastOneWalkable,OnlyIfNoObstacles(no corner cutting),Never(4-way). Heuristics: Euclidean, Manhattan, Octile, Chebyshev, in cells, used as step cost (DefaultComputeHeuristic, times the entered cell’s weight) and estimate (DefaultEstimateHeuristic).ComputeCost/EstimateCostare virtual (Godot’s_compute_cost/_estimate_cost); the built-in fast path applies when the instance is exactly anAStarGrid2D. - Results.
GetIdPath/GetPointPathinto spans return aGridPathStatus:Found;Partial(withallowPartialPath, the path to the visited cell with the lowest estimate, then the lowest cost — Godot’s rule; also whenMaxSearchNodesstops the search);NotFound;InvalidPoint(start solid or outside, target outside);BufferTooSmall(countis the size needed). A solid target isNotFoundat once without partial paths. Allocating overloads return arrays (tools, tests). - Jump point search (
JumpingEnabled) for every diagonal mode, with the pruning rules of the matching PathFinding.js variants; every step still passes the same legality check as A*. Like Godot it ignores weight scales. Its paths list every cell (Godot returns only jump points). A failed JPS search with partial paths reruns plain A* for the partial result. JPS is much faster in mazes and slower on open fields (see Benchmarks), so it is opt-in. - Memory. Per cell: g, h, parent, a stamp and a heap slot (≈ 24 bytes, plus a bit of solidity and 4 bytes of weight once weighted). Each query bumps a stamp instead of clearing arrays; stamps clear only when the counter wraps.
- Determinism. Only
+,*andMathF.Sqrton floats; ties break by f, then h, then the lower cell index; neighbours expand right, down, left, up, then the diagonals. A golden maze locks the A* and JPS paths.
AStar2D and AStar3D
Section titled “AStar2D and AStar3D”Godot’s point graphs: AddPoint(id, position, weightScale) (also moves an existing point), RemovePoint,
ConnectPoints(a, b, bidirectional = true), DisconnectPoints, ArePointsConnected, SetPointDisabled,
GetClosestPoint(position, includeDisabled) (the lowest id among equally close points), GetClosestPositionInSegment,
ReserveSpace, GetAvailablePointId, GetPointConnections, and the same span/array GetIdPath/GetPointPath with
GridPathStatus. Step cost: the distance times the entered point’s weight; estimate: the distance (both virtual).
Storage is a Dictionary<long, int> from id to a dense slot plus slot arrays (PointGraph, positions as Vector3
with z = 0 in 2D; distances in scalar code so every CPU agrees). Adding points allocates, queries do not.
NavigationServer2D and maps
Section titled “NavigationServer2D and maps”var map = NavigationServer2D.For(tree).GetMap(viewport.World2D);var path = new NavigationPath2D(); // reuse it: grows, never shrinksmap.QueryPath(new NavigationPathQuery2D(start, target), path);foreach (var point in path.Points) { /* ... */ }- The engine registers the server right after
PhysicsServer2D(its fixed step runs after the physics step), and so doesHeadlessHost(dedicated servers run agents).EngineOptions.DebugNavigationstarts the debug draw on. - One
NavigationMap2DperWorld2D(World2D.NavigationMap), created by the first region or agent; a map whose viewport left the tree and has nothing registered is released. - Sync points. Region registration, bakes, runtime cell edits, layer changes and grid moves are queued; every map
syncs after each fixed step, or in
Processon frames without one (edit mode, a paused tree). A sync that changed anything bumpsIterationId. Every query of a tick sees the same map.ForceSync()applies changes now. - Query. The region is the first (registration order) whose
NavigationLayersintersect the query’s and that contains the start; a start in a solid cell moves to the nearest walkable cell within 2 cells. A target outside the region or in a solid cell gives the path to the closest reachable cell (Partial) whenAllowPartialPath. Points start at the start and end at the target when it was reached (else the last cell’s centre);Cellsholds the cell behind each point.GetClosestPoint(point, layers)snaps a point onto walkable ground. - Post-processing (Godot’s enum names):
CorridorFunnelpulls strings — from each kept cell to the farthest cell still in line of sight, an exact integer walk that applies the diagonal mode where the line passes a cell corner and never crosses a cell heavier than the path cells it replaces;EdgeCenteredkeeps the corners;Noneevery cell. - Debug draw (
DebugDrawEnabled) into the viewport’sDebugLines: each region’s outline, cell lines, solid cells (outline and cross), weighted cells (dashed), and each agent’s path, next path position and target, inNavigationDebugColors(static, settable). Culled to the view (the editor camera or the currentCamera2D); a view of more than 32 768 cells of one grid draws its outline only. Allocation-free. An agent withDebugEnableddraws its path while the server’s draw is off. In a 2D game (a root viewport without a 3D camera) debug lines draw over the canvas (Canvas).
NavigationGrid2D and NavigationGridData
Section titled “NavigationGrid2D and NavigationGridData”A Node2D that owns an AStarGrid2D and registers it with its viewport’s map while in the tree. Cell (x, y) covers
GlobalPosition + (x, y) · CellSize to + CellSize; global rotation and scale are ignored (a warning, once).
| Export | Default | |
|---|---|---|
Region, CellSize | (0, 0, 32, 32), 32 × 32 px | the layout |
DiagonalMode, Heuristic, JumpingEnabled | OnlyIfNoObstacles, Octile, off | a body cannot squeeze between two diagonal wall corners; octile is exact for 8-way grids |
NavigationLayers | 1 | |
Source (Bake group) | Physics | Manual, Physics, TileMapLayer |
BakeCollisionMask, AgentRadius | layer 1, 0 | physics: the static bodies read; each cell’s overlap box grown by the radius |
TileMapLayerPath, TilePhysicsLayer, SolidDataLayer, WeightDataLayer | —, 0, “solid”, "" | the tile layer source: the layer, the physics layer whose collision is solid, a bool and a float custom data layer (Tile map source) |
BakeOnReady | off | bake once in a deferred call when ready in a running game (procedural levels) |
Data | null | the baked cells (null: every cell walkable) |
Gridis the live grid queries search (outside the tree it is brought up to date when read).SetCellSolidandSetCellWeightedit the live grid (notData: doors, destroyed walls) and apply at the next sync, so agents repath; a layout orDatachange re-appliesDataand drops those edits.CellAt/CellCenterconvert global positions.Bake()bakes fromSourceand replacesData(main thread, needs the tree;Manualclears).BakeData(out error)returns the data without assigning it (the editor’s undoable bake).IsBakeOutOfDate()compares the data’sSourceHashwith the scene now (null: unknown).LastBakeMilliseconds.NavigationGridData(inline or.mfres):Region,Solid(rle1:+ base64 of LEB128 runs alternating walkable and solid cells, row-major, walkable first),Weights(rle1:+ base64 of skip/run/float32 triples),BakedFrom,SourceHash,SolidCount,WeightedCount. A 256 × 256 grid is a handful of lines. Corrupt data or a region mismatch logs a warning and leaves the grid walkable. Plain code: trimming and AOT are fine.- Physics bake (
GridPhysicsBaker2D): oneIntersectShapeper cell with one reused rectangle (the cell, grown byAgentRadius, inset 0.1 px so a wall that only touches a cell’s edge leaves it walkable), masked byBakeCollisionMask; onlyStaticBody2Dhits count (rigid and character bodies move; areas are never reported). ItsSourceHashhashes the static bodies one overlap query over the region finds (transforms, layers, shapes).
Grid sources
Section titled “Grid sources”INavigationGridBaker is the seam: PrepareLayout(node) (a source that owns the layout sets Region, CellSize and
the position), Bake(node, cells, out failure), Attach/Detach(node) (a live source subscribes to its changes and
calls NavigationGrid2D.MarkSourceChanged(), which re-bakes the live grid — not Data — at the next sync, at most
once), and SourceHash(node). NavigationGridBakers.Register(source, baker) replaces the baker of a source; Physics
and TileMapLayer are built in. Grids attach to live sources when they enter the tree, and a live source owns the live
grid’s cells: Data is not applied to it.
Tile map source
Section titled “Tile map source”Source = TileMapLayer (G3.6, TileMapLayerBaker) reads the layer at TileMapLayerPath through the tile map’s public
API only (Tile maps → Navigation hook):
- Layout. The layer owns it: its
TileSizeisCellSize, its global position is the grid’s, andGetUsedRect()isRegion(an empty layer keeps the region). Grid cell (x, y) is map cell (x, y), solayer.MapToLocal(cell)andGrid.GetPointPosition(cell)agree. The layer’s rotation and scale are ignored, like the grid’s. - Cells. A used cell is solid when its tile has collision on the tile set’s physics layer
TilePhysicsLayer, or when its bool custom data layerSolidDataLayer(default"solid"; absent is fine) is true. The float custom data layerWeightDataLayer(default "": none) gives the weight scale of walkable cells; a tile that leaves it unset weighs 1. Empty cells are walkable. - Live. The grid re-reads the layer when it raises
Changed(cells, properties or its tile set), at most once per map sync, so agents repath on the next tick: a click that adds a wall in the Demo reroutes the chaser. Changing one of the four options re-reads too. The re-read is O(used cells) into a reused list and allocates nothing once warm (a 128 × 128 layer is tested at 0 B). The layer may enter the tree after the grid: the first re-read finds it. - Errors leave the grid all walkable with a warning, and
BakeDatareturns the reason: no layer at the path, a non-squareTileShape, a missing physics layer,SolidDataLayernotBool,WeightDataLayermissing or notFloat, a used rectangle overAStarGrid2D.MaxCells. - Bake (the editor’s button) still writes
Datafrom the layer, but the live grid keeps reading the layer, andIsBakeOutOfDate()is unknown (the source has no hash). One layer per grid: a level whose blocking tiles span several layers puts them on one (the Demo’s “Walls” holds stone and water).
NavigationAgent2D
Section titled “NavigationAgent2D”A Node child of the body it steers; it moves nothing. The body’s OnPhysicsProcess asks it where to go:
public sealed class Chaser : CharacterBody2D{ private NavigationAgent2D _agent = null!; protected override void OnReady() => _agent = GetNode<NavigationAgent2D>("Agent"); protected override void OnPhysicsProcess(float delta) { if (_agent.IsNavigationFinished()) return; Velocity = GlobalPosition.DirectionTo(_agent.GetNextPathPosition()) * 140f; MoveAndSlide(); }}- Exports:
TargetPosition,PathDesiredDistance(20 px, Godot’s),TargetDesiredDistance(10 px),PathMaxDistance(100 px),TargetRepathDistance(new, 0 = Godot),NavigationLayers,PathPostprocessing(CorridorFunnel),DebugEnabled. API:GetNextPathPosition,IsNavigationFinished,IsTargetReached,IsTargetReachable,DistanceToTarget,GetFinalPosition,GetCurrentNavigationPath,GetCurrentNavigationPathIndex,CurrentPath,RequestRepath,SetVelocity,SetVelocityForced,SafeVelocity,SubmittedVelocity; the Avoidance group (Avoidance). - Repath (lazily, inside
GetNextPathPosition/IsNavigationFinished): a new target (moved more thanTargetRepathDistancefrom the path’s), a new map iteration, farther thanPathMaxDistancefrom the current path segment, orRequestRepath(). An idle agent costs nothing. A query that finds nothing (no region yet — maps register regions at their first sync — or none at the start) leaves the agent standing and retrying at the next map change. - Waypoints and signals (Godot 4.3): within
PathDesiredDistanceof the current point it advances, raisingWaypointReached(NavigationWaypoint2D)(position, index, cell; a struct, no allocation; the last point once); withinTargetDesiredDistanceof the targetTargetReachedthenNavigationFinished; at the end of a partial pathNavigationFinishedalone. Once finished nothing updates until a new target.PathChangedafter every repath.SetVelocityraisesVelocityComputedat once without avoidance; with it, after the physics step (below). - Path storage: each agent owns a
NavigationPath2Dthat grows to the longest path and is reused: 0 bytes per tick. - Agents run where the body’s movement runs (the server or host in multiplayer); paths depend only on the map at the last sync and the query.
Avoidance (G3.7)
Section titled “Avoidance (G3.7)”Godot’s agent avoidance on ORCA (optimal reciprocal collision avoidance; van den Berg et al. 2011): each avoiding agent gets the velocity closest to the one it wants that keeps its radius clear of every neighbour and obstacle for a time horizon, assuming its neighbours do their half. The solver is a C# port of RVO2 2.0’s 2D one (Godot uses the same library), kept with its Apache-2.0 notice (Third-party notices).
public sealed class Walker : CharacterBody2D{ private NavigationAgent2D _agent = null!; protected override void OnReady() { _agent = GetNode<NavigationAgent2D>("Agent"); // AvoidanceEnabled = true in the scene _agent.VelocityComputed += safe => { Velocity = safe; MoveAndSlide(); }; } protected override void OnPhysicsProcess(float delta) { if (!_agent.IsNavigationFinished()) _agent.SetVelocity(GlobalPosition.DirectionTo(_agent.GetNextPathPosition()) * 140f); }}- Agent exports (group Avoidance, Godot’s names and defaults):
AvoidanceEnabled(off),Radius(10 px),NeighborDistance(500 px),MaxNeighbors(10),TimeHorizonAgents(1 s),TimeHorizonObstacles(0.5 s; Godot’s 0 divides by zero in ORCA’s obstacle lines, so 0.01 s is the floor),MaxSpeed(100 px/s),AvoidanceLayersandAvoidanceMask(1),AvoidancePriority(1). - Timing.
SetVelocity(from the body’sOnPhysicsProcess) submits the preferred velocity. The server’s fixed step, after the physics step and the map sync, computes every submitted agent’s safe velocity from the positions then, and only then raisesVelocityComputedon each, in registration order: a handler that moves its body cannot change another agent’s input. Moving in the handler (MoveAndSlideworks anywhere in a tick) renders the same as moving in the nextOnPhysicsProcess. Frames without a fixed step (a paused tree, edit mode) compute nothing. - Neighbours. Other avoiding agents and radius obstacles within
NeighborDistance(centre to centre) whose layers meet the agent’s mask, theMaxNeighborsnearest. An agent ignores agents of lowerAvoidancePriority, which then take the whole avoidance on themselves; equal priorities share it half and half (ORCA’s reciprocity). A neighbour that does not avoid back this tick (an obstacle, a mask that misses, lower priority, an agent that submitted nothing) is avoided in full. An avoiding agent that submits nothing in a tick stands still for the others and gets no signal.SafeVelocityholds the last result (the velocity the others predict it with);SetVelocityForcedreplaces it (a teleport, a knock-back). NavigationObstacle2D(aNode2D):Radius(unscaled pixels; agents predict it withVelocityand make way for it alone: setVelocityevery tick for a mover),Vertices(a polygon in local pixels placed by the global transform at every step: static or moved, without prediction; two vertices make a wall segment; either winding pushes agents out, and an agent inside a polygon ignores it),AvoidanceEnabled,AvoidanceLayers. Obstacles change no path: block the grid’s cells too (SetCellSolid) where a path must go round one. ORCA is local: an agent sent dead on into a flat face stops at it; paths go round walls, avoidance keeps bodies off each other and off corners.- Symmetry. Two agents exactly head-on only slow down in plain ORCA (RVO2’s examples add random noise). Here an exactly collinear, approaching relative velocity tilts 1 % to the left of the line between them: the same rule seen from both sides, so they pass on the same side, deterministically.
- Neighbour search is a uniform hash grid owned by the map’s
AvoidanceSimulation2D(cells of 4 × the largest radius, at least 8 px; a counting sort into power-of-two buckets; rings of cells outwards until a ring is beyond the shrinking range). Polygon edges are culled by each polygon’s bounds, then RVO2’s rules (edges seen from outside withinTimeHorizonObstacles × MaxSpeed + Radius, nearest first). - Determinism and memory. Entities are numbered in registration order (agents, then radius obstacles); neighbours sort by distance, then number; dot and cross products are scalar code (no SIMD reductions), and coincident agents are moved apart by number before RVO2 would divide by zero. Every buffer belongs to the map and only grows: a steady crowd allocates nothing.
- Debug draw (Visible Navigation): an avoiding agent’s radius and a quarter second of its safe velocity
(
NavigationDebugColors.Avoidance), obstacles’ circles and polygons (NavigationDebugColors.Obstacle, faded while disabled).
Navigation meshes (G3.9)
Section titled “Navigation meshes (G3.9)”Godot’s 2D navigation meshes (ADR 0261): a NavigationRegion2D
puts the convex polygons of its NavigationPolygon on the map; polygons that share an edge are connected, inside a
region and across regions; NavigationLink2Ds join points the polygons do not (jumps, ladders, teleporters). Agents
follow funnel paths over them exactly as they follow grid paths.
var region = new NavigationRegion2D{ NavigationPolygon = new NavigationPolygon { BakingRect = new Rect2(0, 0, 1280, 720), AgentRadius = 12f },};level.AddChild(region); // walls (StaticBody2D), tile layers, carving obstacles go under itregion.Bake(); // or the inspector's Bake button; saved inline or as a .mfresNavigationPolygon(aResource, inline or.mfres):VerticesandPolygons(convex, indices; either winding) are the mesh;Outlines(an outline inside another is a hole),BakingRect(clips the outlines, or is the traversable area when there are none),AgentRadius(10 px),CellSize(1 px: the bake’s vertex grid),ParsedGeometryType(MeshInstances=Polygon2Ds,StaticColliders,Both),ParsedCollisionMask,SourceGeometryMode(the region’s descendants, or the nodes ofSourceGeometryGroupNamewith or without children) are the bake’s input.MakePolygonsFromOutlines()partitions the outlines alone;SetMesh,AddPolygon,AddOutline,Clear,Version.- Bake (
NavigationRegion2D.Bake/BakeData,NavigationPolygonBaker2D): the traversable outlines shrunk by the agent radius, minus the obstructions grown by it —StaticBody2Dcollision shapes (rectangles, circles and capsules as 24-sided polygons, convex and concave polygons; disabled shapes skipped), the collision polygons ofTileMapLayertiles on the masked physics layers (with flips and transposes),Polygon2Ds, andNavigationObstacle2Ds withAffectNavigationMesh— in the region’s local space. Clipper2 on an integer grid with miter joins, then holes bridged into the outer ring, exact ear clipping and Hertel–Mehlhorn merging: the same polygons on every run and CPU. The default source mode bakes without a tree (scenes built in code); the group modes need one.LastBakeMilliseconds,BakeFinished. NavigationRegion2D(aNode2D):NavigationPolygon,Enabled,NavigationLayers,EnterCost(0: added when a path enters it from another region),TravelCost(1: multiplies distance inside it),UseEdgeConnections; placed by its full global transform (rotation and scale too).NavigationPolygonChanged.NavigationLink2D(aNode2D):StartPosition,EndPosition(local),Bidirectional,Enabled,NavigationLayers,EnterCost,TravelCost,GetGlobalStartPosition/End…,IsConnected()(both ends found a polygon at the last sync). Each end attaches to the closest polygon within the map’sLinkConnectionRadius.- The map’s mesh is rebuilt at a sync after any change: a region’s polygon, setting or transform (polled at each sync,
so a move applies at once), a link, a map setting. Vertices are welded on
NavigationMap2D.CellSize(1 px), exact shared edges connect, free edges of different regions withinEdgeConnectionMargin(1 px) that run against each other connect over their overlap, links attach (LinkConnectionRadius, 4 px; Godot’s defaults). A uniform grid of polygon bounds finds polygons. The rebuild reuses its buffers: 0 B once warm.PolygonRegions,Links,PolygonCount. - Queries. A grid region containing the start still answers first; otherwise the mesh does. The start and target snap
to the closest point of a polygon on the query’s layers. A* over polygons with Godot’s cost model — entry points are
the closest point of each portal to the previous entry, cost the distance times the region’s
TravelCost, plusEnterCostinto another region and a link’sEnterCost+ length ×TravelCost— and the straight-line estimate; ties break by polygon index.CorridorFunnelruns the funnel per stretch between links;EdgeCenteredgives portal midpoints;Nonethe entry points. A target off the mesh, or unreachable, givesPartial(the path to the closest point of the polygon closest to it) orNotFoundwithout partial paths.GetClosestPointincludes the mesh. - Paths and agents.
NavigationPath2D.Ownersholds the node behind each point (the grid, the region, or the link at its entry and exit). An agent raisesLinkReached(NavigationLinkReached2D)(link, index, entry, exit) after theWaypointReachedof a link’s entry; it moves nothing, so the body jumps or teleports to the exit (the Demo’s chasers setGlobalPosition). - Debug draw (Visible Navigation): inner polygon edges faint (
CellLines), borders (Region), edge connections (NavigationDebugColors.EdgeConnection, with a cross at the middle), links (NavigationDebugColors.Link: a line, end circles, an arrow per direction; faded while unconnected). Culled to the view like grids.
Async queries (G3.10)
Section titled “Async queries (G3.10)”Path queries on worker threads (ADR 0262), delivered at the map’s next sync so they stay deterministic:
var request = map.QueryPathAsync(new NavigationPathQuery2D(from, to), path); // path: a NavigationPath2D you keep// … at the next sync (the next physics tick) …if (request.IsCompleted && request.Status == GridPathStatus.Found) Follow(path.Points);NavigationMap2D.QueryPathAsync(in query, NavigationPath2D result)queues the query and returns aNavigationPathRequest(a struct:IsCompleted,Status,Result,Cancel,WasCancelleduntil the delivery). Worker threads of the server’s own (background threads started on first use, each with its own grid and navmesh search scratch, asleep between batches; not the .NET thread pool, whose queue allocates as items pass through it on Windows) run it into a reused slot; every map sync first waits for the requests submitted before it, then copies each result into its caller’s path in submission order — never earlier, whatever the threads did. Nothing changes a map between its syncs (cell edits, bakes, moves and region changes all apply at the sync, after the wait), so workers read the live grids and mesh: no snapshots, no copies. A result depends only on the map at submission and the query: the same points asQueryPath, one sync later, for any worker count.Cancel()before the sync leaves the result untouched.- Workers.
NavigationServer2D.QueryWorkerCount(default a quarter of the processors, 1–4; 0 runs the requests on the main thread at the sync, with the same results — tests, platforms without threads); with workers the main thread only waits at the sync (running leftovers itself would grow its own scratch at odd ticks).PendingQueries; profiler scopeNavigation async wait. Allocation-free once the slots, paths and scratches have grown. - Agents.
NavigationAgent2D.PathMode:ProjectDefault(the server’sAsyncAgentsByDefault),Immediate,Async. An async agent queues its repath and takes the new path at the next sync (PathChangedthen); after a map change or a push off its path it keeps following the old path meanwhile (waypoint signals, no arrival or finish from it), and for a new target it stands still for that tick.IsPathAsync,IsPathPending. project.mfprojnavigationsection (format 7; the 6 → 7 step guards it from older editors):{ "workers": 2, "asyncAgents": true }, applied to the server byGameHostandHeadlessHost(Project and GameHost).
3D grids (G3.11)
Section titled “3D grids (G3.11)”Godot’s 3D navigation for top-down games, tower defence and strategy, on grids
(ADR 0263): a NavigationServer3D with one NavigationMap3D per
World3D (registered after PhysicsServer3D by the engine and HeadlessHost; the same sync points as the 2D maps), a
NavigationGrid3D region and NavigationAgent3D.
var grid = new NavigationGrid3D { Region = new Rect2I(0, 0, 48, 32), CellSize = new Vector2(0.5f), AgentRadius = 0.35f };level.AddChild(grid); // at the floor's height; Bake() in the editor or at run time// A CharacterBody3D with a NavigationAgent3D child (PathHeightOffset = the capsule's half height):var to = agent.GetNextPathPosition() - GlobalPosition; // level: the offset is added backNavigationGrid3D(aNode3D): anAStarGrid2Don the XZ plane at the node’s global Y; cell (x, z) coversGlobalPosition.XZ + (x, z) · CellSize. The 2D grid’s exports (Region,CellSize— default 1 m —DiagonalMode,Heuristic,JumpingEnabled,NavigationLayers,BakeOnReady,Data: the sameNavigationGridData) and API (SetCellSolid,SetCellWeight,CellAt,CellCenter,Bake,BakeData,IsBakeOutOfDate,Grid), plusHeight. Rotation and scale are ignored (a warning). A move — also up or down — applies at the next sync.- Bake (
GridPhysicsBaker3D, throughPhysicsDirectSpaceState3Donly): one overlap box per cell, the cell grown byAgentRadius(less 1 mm), fromAgentMaxClimb(0.25 m) toAgentHeight(1.5 m) above the grid — the floor and low steps do not block, and nor does anything overhead — masked byBakeCollisionMask; onlyStaticBody3Dhits count.IsBakeOutOfDatehashes the static bodies in that band. - Queries.
NavigationMap3D.QueryPath(in NavigationPathQuery3D, NavigationPath3D)runs the 2D map’s grid code on the XZ plane (NavigationMap2D.QueryGrid: the same start snapping, partial paths and post-processing) and lifts the points to the grid’s height;NavigationPath3DhasPoints(Vector3),Cells,Owners,Status,Region,MapIteration.GetClosestPointsnaps onto walkable ground. 0 bytes per query. NavigationAgent3D: the 2D agent’s rules and signals inVector3(TargetPosition,PathDesiredDistanceandTargetDesiredDistance1 m,PathMaxDistance5 m,TargetRepathDistance,NavigationLayers,PathPostprocessing,DebugEnabled;PathChanged,WaypointReached(NavigationWaypoint3D),TargetReached,NavigationFinished).PathHeightOffsetis the body origin’s height above the navigation surface: queries and distances use the origin lowered by it, andGetNextPathPositionreturns path points raised by it, so a capsule steers level.SetVelocityraisesVelocityComputedat once: 3D avoidance and async paths are not built for 3D yet.- Debug draw (Visible Navigation, the dev overlay’s checkbox): each grid’s outline on its plane, solid cells (outline and cross) and weighted cells 2 cm above it, each agent’s path, next position and target ring.
3D navigation meshes (G3.12)
Section titled “3D navigation meshes (G3.12)”Godot’s 3D navigation meshes, baked with Recast and queried with Detour through DotRecast, the C# port (zlib; the owner’s choice: ADR 0264). For uneven ground a grid cannot describe: ramps, stairs, terraces, terrain.
var region = new NavigationRegion3D { NavigationMesh = new NavigationMesh { AgentRadius = 0.35f, CellSize = 0.15f } };level.AddChild(region); // floors, ramps, walls (StaticBody3D / MeshInstance3D) go under itregion.Bake(); // or the inspector's Bake; saved inline or as a .mfresNavigationMesh(aResource): the bake settings with Godot’s names and defaults —CellSize/CellHeight0.25,AgentHeight1.5,AgentRadius0.5,AgentMaxClimb0.25,AgentMaxSlope45°,SamplePartitionType(Watershed,Monotone,Layers),RegionMinSize2,RegionMergeSize20,EdgeMaxLength0,EdgeMaxError1.3,VerticesPerPolygon6,DetailSampleDistance6,DetailSampleMaxError1,ParsedGeometryType,CollisionMask,SourceGeometryMode+SourceGroupName, the threeFilter…switches andFilterBakingAabb— and the result:Vertices/Polygons(region-local, for tools and the debug draw) andDetourData(dtmd1:+ base64 of the Detour tile queries load).IsBaked,Clear,SetBaked,Version.- Bake (
NavigationRegion3D.Bake/BakeData,RecastBaker): the region’s descendants (or a group) as one triangle soup in its local space —MeshInstance3Dsurfaces andStaticBody3Dcollision shapes (boxes; spheres, capsules and cylinders as 16-sided rings; convex hulls; concave faces; height maps) — then Recast’s voxelise, walkable filters, regions, contours, polygons and detail mesh, and Detour’s tile. Recast rasterises surfaces only, so the air inside a closed shape would read as floor: each solid primitive also marks its footprint unwalkable from its bottom to just below its lowest top (a pillar’s top and a ramp stay walkable). The same scene bakes to the same bytes. The default source mode bakes without a tree (scenes built in code). Main thread; tens of milliseconds for a Demo-sized level. NavigationRegion3D(aNode3D):NavigationMesh,Enabled,NavigationLayers; placed by its full global transform (queries go to its local space and back);BakeFinished,NavigationMeshChanged,LastBakeMilliseconds. The map loads its tile into aDtNavMeshat the next sync after a change, and re-places it after a move.- Queries. A 3D grid containing the start answers first; otherwise the enabled navmesh region (on the query’s
layers) whose surface is nearest the start does, within a search box of two agent radii across and an agent height up
and down. Paths stay in that region (regions are not joined yet). Detour’s
FindPathandFindStraightPath:CorridorFunnelis the straight path;EdgeCenteredandNoneadd every polygon-edge crossing. A target off the mesh, out of reach or on another island givesPartial(the closest point), orNotFoundwithout partial paths.GetClosestPointincludes the meshes. 0 bytes per query (DotRecast’s span overloads into reused buffers). - Agents.
NavigationAgent3Dfollows navmesh paths unchanged; setPathHeightOffsetto the body’s height above its feet, so a capsule climbs ramps and stairs level. - Debug draw (Visible Navigation): each baked region’s polygon edges just above them (faded while disabled).
Editor
Section titled “Editor”- Visible Navigation (toolbar view group, icon
route, View menu): the editor tree’s server draws every edited scene’s grids, paths and targets; on by default, like collision shapes (EditorApp:DebugNavigation). NavigationGridInspector: icon buttons Bake (wand) and Clear (trash), each one undoable change ofData, and a status line — size, solid and weighted cells, source, the last bake’s time, “out of date” when a static body in the region changed since the bake. Only the current source’s bake rows show.- Agent gizmo: the selected
NavigationAgent2Ddraws itsTargetDesiredDistanceandPathDesiredDistancecircles around its body, its avoidanceRadiuswhen avoiding, and a line and circle at its target, in the overlay. - Obstacle gizmo: the selected
NavigationObstacle2Ddraws its radius circle and polygon (a dot on each vertex) in the selection colour; Visible Navigation draws every obstacle.Verticesare edited in the inspector (no handles yet). NavigationRegion3DInspector(G3.12): Bake (Recast) and Clear, each one undoable change of the mesh’s vertices, polygons and Detour data, and a status line (polygons, vertices, the last bake’s time).NavigationGrid3DInspector(G3.11): Bake/Clear with undo and the status line, as for 2D grids; Visible Navigation switches the 3D server’s debug draw too.NavigationRegionInspector(G3.9): Bake (wand) and Clear (trash), each one undoable change of the polygon’sVerticesandPolygons, and a status line — polygons, vertices, outlines or baking rect, the last bake’s time. The selected region draws its outlines (a dot per vertex) and a dashed baking rectangle; outlines are edited in the inspector (no handles yet). The selectedNavigationLink2Ddraws its line, arrow heads and a circle of the link connection radius at each end.- Running games: a Navigation checkbox in the dev overlay’s Physics panel. The editor’s toggle does not reach played games.
Profiler
Section titled “Profiler”Scopes Navigation sync, Navigation query, Navigation bake, Navigation avoidance, Navigation async wait (G3.10)
and Navigation debug draw, plus the server’s own
NavigationServer2D.FixedStep and NavigationServer2D frame-server scopes (Profiler).
Tests/MainframeEngine.Tests/Navigation/:AStarGrid2DTests(each diagonal mode’s corner rules with and without JPS, heuristics, weights, invalid points, partial paths,BufferTooSmall, dirty grids, positions, fills, stamp wrap-around,MaxSearchNodes, overridden costs),AStarGridOptimalityTests(200 seeded grids: A* = Dijkstra for every admissible heuristic pair; JPS = A* for every mode; a golden maze for A* and JPS),AStarPointGraphTests,NavigationMapTests(sync points, edits, edit mode and pause, queries, post-processing, line of sight, regions by layer and position, closest point, debug draw),NavigationGridBakeTests(SerialBox2D: shapes, agent radius, mask, moving bodies, staleness,BakeOnReady, sources, a live source),NavigationGridDataTests(codec,.mfres, inline in a scene, corrupt data),NavigationAgent2DTests(aCharacterBody2Dround a baked wall with signals in order, repath on a new wall,TargetRepathDistance,PathMaxDistance, unreachable targets, no map) andNavigationAllocationTests(0 bytes over 300 ticks of 64 agents chasing moving targets on a 128 × 128 grid with cell edits every 30 ticks and the debug draw on; 0-byte grid queries),TileMapNavigationTests(the tile map source: layout and cell mapping, collision per physics layer,"solid"and weight data, re-reads onChangedwith an agent repathing round a new wall, a layer that enters after the grid, detaching, every error,BakeintoData, a 0-byte re-read of a 128 × 128 layer),NavigationAvoidanceTests(G3.7: a head-on pair passes without touching, a crowd of 16 through a 64 px gap arrives without overlap or wall contact, a static polygon is gone round, moving radius and polygon obstacles are avoided, two runs are bit-identical, masks and priorities, standing agents, the signal’s timing andMaxSpeed, and without avoidance the pass-through); the allocation gate’s second case: 0 bytes over 300 ticks of 64 avoiding agents on paths with four orbiting radius obstacles, a sliding polygon and the debug draw on.- G3.9:
NavigationPolygonBuilderTests(a square, an L, holes, islands, carved and radius-grown obstructions, merged and splitting obstructions, many bridged holes, the baking rectangle, degenerate input, either winding, a star with holes against Clipper’s own area, deterministic output; every polygon convex),NavigationMeshQueryTests(sync, the funnel round a wall both ways,EdgeCentered/Noneon the mesh, shared edges and edge margins, links one way and both, the funnel either side of a link, travel and enter costs, layers, snapping and partial paths, rotated and scaled regions, rebuilds, grids first, bad polygons, determinism and 0-byte queries),NavigationPolygonBakeTests(SerialBox2D: shapes and the agent radius, every shape kind, masks and geometry types, group modes, tiles and carving obstacles, transformed regions, errors),NavigationPolygonResourceTests(.mfresand inline),NavigationMeshAgentTests(an agent round a wall and across a link withLinkReached, repaths when a region turns off, the debug draw, and the allocation gate’s third case: 0 bytes over 300 ticks of 64 agents on a navmesh with a door region toggling every 30 ticks, a link and the debug draw on). - G3.10:
NavigationAsyncQueryTests(delivery at the next sync and never before, 200 random grid and navmesh queries equal toQueryPathwith 0, 1 and 4 workers, the map as it was at submission, cancelling, async agents taking their path one sync later and arriving, keeping the old path while the map changes, and the allocation gate’s async case: 0 bytes over 300 ticks of 64 async agents on a grid and a navmesh with cell edits every 30 ticks);ProjectSettingsTests(thenavigationsection). - G3.11:
Navigation3DTests(the bake’s height band and agent radius, staleness, queries on the plane at a height, closest points, edits and moves at the sync, aCharacterBody3Dwalking round a wall with its signals, repaths on a blocked cell, the debug draw, and the allocation gate’s 3D case: 0 bytes over 300 ticks of 64 agents with cell edits every 30 ticks and the debug draw on). - G3.12:
NavigationMesh3DTests(obstacles carved by the radius and the inside of solids, a ramp onto a platform and the island without it, funnel and edge-crossing paths, mesh and collision sources, moved and disabled regions, deterministic bakes and clearing, corrupt tiles, aCharacterBody3Dwalking up the ramp onto the platform, and the allocation gate’s case: 0 bytes over 300 ticks of 64 agents with a region move every 60 ticks and the debug draw on);NavigationPolygonResourceTests(a bakedNavigationMeshas.mfresloads and answers the same path). - Editor (
NavigationEditorTests): the toggle, Bake/Clear with undo and staleness, source rows, the agent gizmo, the obstacle gizmo and the avoidance radius; the region inspector’s Bake/Clear with undo, the region and link gizmos; the 3D grid’s Bake/Clear and the 3D debug draw toggle; the 3D region’s Bake/Clear with undo. - Render test
navigation(NavigationRenderTests): grid, solid cells, mud, paths and targets over the collision shapes through aCamera2D(golden). - Demo:
NavigationMesh3DSceneTests(G3.12: the saved mesh equals a bake, capsules climb the ramp onto the terrace and the stairs onto the deck, the panel);Navigation3DSceneTests(G3.11: the saved grid equals a bake, every capsule arrives and stays on the floor, a second target behind a wall, the panel);Navigation2DSceneTests.WithAsyncPathsEveryChaserStillArrives(G3.10);NavigationMesh2DSceneTests(the saved polygons equal a bake, every chaser ferries across and arrives without wading the river, the pond carved or not, the panel);Navigation2DSceneTests(the saved grid equals a real bake, every chaser reaches the target, avoiding chasers keep apart and off the boulder, clicked walls reroute, the panel);Tiles2DSceneTests(the tile-sourced grid matches the walls layer, the shadow reaches the hero without stepping on stone or water, a wall on its path makes it repath). - Benchmarks (
NavigationBenchmarks, Apple M5): 256² open field A* 8-way ≈ 25 µs, JPS ≈ 0.21 ms, A* 4-way ≈ 31 µs; 256² maze A* 8-way ≈ 3.9 ms, JPS ≈ 0.23 ms, 4-way 2.6 ms / 0.4 ms; a tick with 64 agents repathing on a 128² maze ≈ 15 ms; all 0 B.AvoidanceBenchmarks(RVO2’s circle scenario through four pillars, one fixed step): 64 agents ≈ 43 µs, 256 agents ≈ 0.23 ms, 0 B (measured with other work running: not inbaseline.jsonyet).NavmeshBenchmarks(G3.9, a 2048² hall with 64 slanted pillars): a funnel query corner to corner ≈ 11 µs and 0 B, the map’s rebuild ≈ 0.2 ms and 0 B,MakePolygonsFromOutlines≈ 0.4 ms (allocates its result); also measured on a busy machine.
Changes from the proposal
Section titled “Changes from the proposal”AStarGrid2D.Update()keeps cells when the region is unchanged, and onlyRegionmarks the grid dirty (the proposal listed every layout property): moving a grid never wipes it.ClearCells()is new (Clear()empties the region, as Godot’s).- JPS partial paths come from a plain A* rerun;
MaxSearchNodescounts expanded cells. NavigationPath2Dalso hasCountandMapIteration;NavigationMap2DexposesRegions,AgentsandViewport.- Agents that find no path (the map’s regions not synced yet) wait for the next map iteration instead of finishing;
finished agents stop updating until a new target (Godot 4.3);
NavigationAgent2D.CurrentPathis new. NavigationGrid2DgainedBakeData,IsBakeOutOfDate,MarkSourceChanged,CellAt,CellCenter,LastBakeMilliseconds;NavigationGridDatagainedSourceHashand the counts.- Sources are pluggable (
INavigationGridBaker,NavigationGridBakers), so G3.6 added a baker and no API. - G3.6: the tile layer owns
Regionalways (the proposal kept a hand-set region, but nothing records that it was set by hand); a live source’s grid no longer appliesData;AStarGrid2D.ClearCells()keeps the weight array so a re-read allocates nothing;NavigationGridBakers.Unregister(tests) puts the built-in back. The plainChangedsignal is enough so far: noCellsChanged(Rect2I)was added to tile maps. - 2D games’ debug lines draw over the canvas (they drew under it before, unseen).
- G3.7 avoidance: the proposal left the algorithm source open: it is a port of RVO2 2.0 (ADR 0250).
TimeHorizonObstaclesdefaults to 0.5 s, not Godot’s 0.VelocityComputedis raised in the server’s fixed step after the physics step (the proposal: “before the next tick’sOnPhysicsProcess”, which this satisfies). Added beyond the proposal: per-neighbour responsibility (full avoidance of neighbours that do not avoid back), deterministic head-on symmetry breaking,SafeVelocity,SubmittedVelocity,SetVelocityForced,NavigationMap2D.Obstacles. Polygon obstacles always push agents out (Godot’s winding picks in or out) and are not predicted when moved; radius obstacles are. The neighbour grid is the hash grid the proposal named; polygon edges use bounds culling, not RVO2’s obstacle k-d tree (few edges per level). The editor has no vertex handles for obstacles yet. - G3.9 navigation meshes: the partition is ours (Clipper2 1.5.4 has no triangulator; Godot uses polypartition), on
Clipper2’s integer grid with miter joins (ADR 0261, answering open question 2: Clipper2 covers the offsetting).
Grids and meshes share one map (a grid containing the start answers first). Added beyond the proposal:
NavigationPath2D.Owners,NavigationAgent2D.LinkReachedwithNavigationLinkReached2D,NavigationLink2D.IsConnected,NavigationObstacle2D.AffectNavigationMesh(Godot’s),BakingRectas the traversable area when there are no outlines, bakes of scenes outside the tree (descendant mode), the map’sCellSize,EdgeConnectionMargin,LinkConnectionRadius,UseEdgeConnectionsandPolygonCount. Region and link moves are polled at each sync. Tile layers are parsed whether or not theirCollisionEnabledis on. Not built: an outline editor with viewport handles, baking on a thread,BorderSizeandBakingRectOffset, a carve-without-radius mode for obstacles. - G3.10 async queries: no snapshots — the proposal’s copy-on-write grid snapshots are unnecessary because each sync
waits for the requests before it changes the map, so workers read the live data (same guarantees, no copies, 0 B with
edits) and navmeshes are covered too. The agent setting is
PathMode(ProjectDefault/Immediate/Async), not a boolAsyncPath, so the project default can apply; a new target makes an async agent stand still for one tick (the old path leads elsewhere). With workers the main thread only waits at the sync; 0 workers runs them all there. Workers are dedicated threads, not the thread pool (its queue allocated 4 KiB segments on Windows CI). Added:NavigationPathRequest.Cancel/WasCancelled/IsValid,NavigationServer2D.PendingQueries, the async wait scope. Fixed on the way: navmesh paths no longer keep staleCellsfrom an earlier grid query in a reused path. - G3.11 3D grids: the grid code is the 2D map’s, shared (
NavigationMap2D.QueryGrid,ClosestOnGrid), and the data is the sameNavigationGridData. Added beyond the proposal:AgentHeightandAgentMaxClimb(the bake’s height band, Godot’s agent defaults),NavigationGrid3D.Height, the 3D inspector. Not built yet: 3D avoidance, async 3D agents, an agent gizmo in the 3D view.NavigationAgent3D.PathHeightOffsetadds the offset back to returned positions (Godot documents it only as subtracted). - G3.12 3D navigation meshes: baking and queries are DotRecast (the owner’s answer to open question 1; AOT, trimming
and per-query allocation checked first: no IL2xxx/IL3xxx warnings in a NativeAOT publish, 0 bytes per query). Each
region keeps its own Detour tile, and paths stay in one region: regions are not joined by shared edges in 3D yet, and
there is no
NavigationLink3Dor 3D avoidance. Added beyond the proposal: the solid-interior marking (Recast’s closed mesh artefact),NavigationMesh.DetourDatabeside Godot’sVertices/Polygons,IsBaked,SetBaked, bakes of scenes outside the tree. Not built: baking on a thread, tiled meshes for large worlds. - G3.8 grid polish closed without code: its three items were conditional — isometric cells if tile maps need them (tile maps are square only), HPA* if a game needs it (none does), cell painting if tile maps do not cover it (G3.6’s live tile source does).
- The Demo scene is in the nav bar’s 2D category; number keys open categories, not scenes (Demo).
Open questions
Section titled “Open questions”- Tile map dirty rects (from the proposal). G3.6 re-reads the used cells on the plain
Changedsignal (0 B once warm). Should tile maps addCellsChanged(Rect2I)once a game digs or builds every frame and the full re-read shows in the profiler?
Related
Section titled “Related”Physics (queries), Canvas, Editor, Dev overlay, Demo, Tile maps, ADR 0250, ADR 0261, ADR 0262