Method Path
Path(ref PathDescriptor, List<Rect>, Vector2, Vector2, Vector2, Vector2, int)
Trace the path for a series of obstacles using the state descriptor provided
Declaration
public static void Path(ref AutoRouter.PathDescriptor pathDesc, List<Rect> nodes, Vector2 start, Vector2 stop, Vector2 fixedStart, Vector2 fixedStop, int iterationLimit = 30)
Parameters
| Type | Name | Description |
|---|---|---|
| AutoRouter.PathDescriptor | pathDesc | Path state descriptor |
| List<Rect> | nodes | List of obstacles |
| Vector2 | start | Start point |
| Vector2 | stop | Stop point |
| Vector2 | fixedStart | Fixed start point to hardcode in the path |
| Vector2 | fixedStop | Fixed stop point to hardcode in the path |
| int | iterationLimit | Maximum number of iterations used while solving the path |