API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceWaypointEdgeOptions
@codexo/exojs-pathfinding / pathfinding / stable
Options for WaypointGraph.addEdge and WaypointGraph.connect.
3
props
0
methods
0
events
Import
import { WaypointEdgeOptions } from '@codexo/exojs-pathfinding'Options for WaypointGraph.addEdge and WaypointGraph.connect.
Properties3
cost?: numberTraversal cost. Defaults to the straight-line distance between the two nodes, or 1 when either of them has no position.
data?: PayloadPayload for the movement controller: jump impulse, ladder id, anything.
kind?: stringFree-form traversal tag surfaced through PathResult.edges - the hook a movement controller reads to tell a jump from a walk. Defaults to 'walk'.
Source