NavSearchOptions

Extends: roAssociativeArray

Options for BGE.NavGrid.findPath() and startSearch().

Properties

  • maxExpandedCells (integer) — Give up after expanding this many cells. Default 20000.
  • allowPartial (boolean) — When the goal can't be reached (or the search gives up), return a path to the cell
  • smooth (boolean) — Smooth the path with line-of-sight checks. Default true.
  • snapRings (integer) — A start or goal in a blocked cell moves to the nearest open cell up to this many cells