Struct SearchContext
Public
Temporary data for a single path used during the pathfinding process.
It is used internally by the pathfinding algorithm to keep track of the current state of the pathfinding process, and provides various helper functions.
See
Inner Types
Public Methods
OpenCandidateConnection
(parentPathNode, targetPathNode, targetG, fractionAlongEdge, targetNodePosition)
Opens a connection between two nodes during the A* search.
OpenCandidateConnectionsToEndNode
(position, parentPathNode, parentNodeIndex, parentG, traversalCostFactor)
Open a connection to the temporary end node if necessary.
SkipOverNode
(ctx, pathNodeIndex, parentNodeIndex, fractionAlongEdge, hScore, gScore)
Paths use this to skip adding nodes to the search heap.
Public Static Methods
OpenCandidateConnectionBurst
(pars, heap, heuristicObjective)
Burst-compiled internal implementation of OpenCandidateConnection.
Public Variables
heuristicObjective
Target to use for H score calculations.
Public
path
Public
pathHandler
Public
pathID
Public
traversalConstraint
Public
traversalCosts
Public