A* Pathfinding Project
3.6.1
The A* Pathfinding Project for Unity 3D
|
Graphs implementing this interface have support for the Funnel modifier. More...
Graphs implementing this interface have support for the Funnel modifier.
Public Member Functions | |
void | AddPortal (GraphNode n1, GraphNode n2, List< Vector3 > left, List< Vector3 > right) |
Add the portal between node n1 and n2 to the funnel corridor. | |
void | BuildFunnelCorridor (List< GraphNode > path, int sIndex, int eIndex, List< Vector3 > left, List< Vector3 > right) |
Add the portal between node n1 and n2 to the funnel corridor.
The left and right edges does not necesarily need to be the left and right edges (right can be left), they will be swapped if that is detected. But that works only as long as the edges do not switch between left and right in the middle of the path.
void BuildFunnelCorridor | ( | List< GraphNode > | path, |
int | sIndex, | ||
int | eIndex, | ||
List< Vector3 > | left, | ||
List< Vector3 > | right | ||
) |