Skip to content

NavGrid Find Path

Finds an A* path on a NavGrid and outputs cells and/or world positions.

Parameter Description
NavGrid NavGrid to search.
Use World Positions If true, Start and Goal are world positions. Otherwise they are cell coordinates.
Start Start position/cell.
Goal Goal position/cell.
Neighbors Path connectivity (FourWay or EightWay).
No Corner Cut Prevents diagonal corner cutting in eight-way mode.
Min Clearance Minimum clearance requirement (0 disables).
Cost Weight Weight multiplier for NavGrid Cost values (0 ignores cost).
Max Nodes Safety cap on expanded nodes (0 = unlimited).
Path Cells Output path as grid cells.
Path World Output path as world-space cell centers.
Found Output true if a path was found.
Aborted Output true if search hit the Max Nodes limit.

Example

  1. Enable Use World Positions.
  2. Set Start to agent position and Goal to target position.
  3. Store Path Cells for movement and Found for flow decisions.

See also