Ejemplo n.º 1
0
    public List <Waypoint> GetPath(Waypoint startWaypoint, Waypoint finishWaypoint, int pathFindAlgorithm, int heuristic)
    {
        this.startWaypoint     = startWaypoint;
        this.finishWaypoint    = finishWaypoint;
        this.pathFindAlgorithm = (PathFindAlgorithm)pathFindAlgorithm;
        this.heuristic         = (Heuristic)heuristic;
        LoadGrid();
        //ColorStartAndEnd();

        return(PathFind());
    }
Ejemplo n.º 2
0
 public PathRequest <TPath> RequestPath(float x1, float y1, float x2, float y2, PathfindaxCollisionCategory collisionLayer = PathfindaxCollisionCategory.None, byte agentSize = 1)
 {
     return(PathFindAlgorithm.CreatePathRequest(this, DefinitionNodeNetwork, x1, y1, x2, y2, collisionLayer, agentSize));
 }