API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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: numberTotal 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: numberNodes 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.
nodes mapped through the space's node-to-point conversion.
revision: numberspace.revision at search time. Compare it against the space's current revision to detect a path that the world has invalidated since.
Source