API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfacePathResult

@codexo/exojs-pathfinding / pathfinding / stable

Result of Pathfinder.findPath and Pathfinder.findPathBetween.

7
props
0
methods
0
events
Import
import { PathResult } from '@codexo/exojs-pathfinding'

Result of Pathfinder.findPath and Pathfinder.findPathBetween.

Properties7
cost: number
Total traversal cost of nodes. Smoothing does not change it.
Traversal steps for spaces that describe them, empty otherwise. Not filled for smoothed paths, whose steps are no longer space edges.
expandedNodes: number
Nodes taken off the open list. Useful for sizing maxExpandedNodes.
nodes: readonly number[]
Node ids from start to goal inclusive. Consecutive entries are adjacent in the space unless the path was smoothed, which removes intermediate nodes by design.
revision: number
space.revision at search time. Compare it against the space's current revision to detect a path that the world has invalidated since.
Source