API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceNavigationSpace
The search core's view of a world: integer node ids, a neighbour relation and a heuristic. GridSpace and WaypointGraph implement it, and so can application code - a space needs no scene node, no renderer and no asset. Implementations must be deterministic: the same query on an unmutated space has to produce the same neighbours in the same order, or paths stop being reproducible across runs and machines.
import { NavigationSpace } from '@codexo/exojs-pathfinding'The search core's view of a world: integer node ids, a neighbour relation and a heuristic. GridSpace and WaypointGraph implement it, and so can application code - a space needs no scene node, no renderer and no asset.
Implementations must be deterministic: the same query on an unmutated space has to produce the same neighbours in the same order, or paths stop being reproducible across runs and machines.
describeEdge?(from: number, to: number): PathEdgeOne traversal step of a path, as described by the space it came from. Spaces that model traversal kinds - WaypointGraph is the one in this package - report the…<Payload> | nullheuristic(node: number, goal: number): numbernearestNode?(x: number, y: number): numberneighbors(node: number, agentSize: number, outNodes: Int32Array, outCosts: Float64Array): numberpointToNode(x: number, y: number): numbersmoothPath?(nodes: readonly number[], agentSize: number): number[]maxDegree: numbernodeCapacity: numberrevision: number