Function PathTracer.RemoveGridPathDiagonals
RemoveGridPathDiagonals
(Funnel.PathPart[] parts, int partIndex, refCircularBuffer<GraphNode> path, refCircularBuffer<int> pathNodeHashes, NNConstraint nnConstraint, ITraversalProvider traversalProvider, Path pathObject)
Removes diagonal connections in a grid path and replaces them with two axis-aligned connections.
Public
Static
void RemoveGridPathDiagonals (
parts | ||
int | partIndex | |
path | ||
refCircularBuffer<int> | pathNodeHashes | |
nnConstraint | ||
traversalProvider | ||
pathObject |
Removes diagonal connections in a grid path and replaces them with two axis-aligned connections.
This is done to make the funnel algorithm work better on grid graphs.