November 2018
Beginner
246 pages
5h 23m
English
The AStar class implements the pathfinding algorithm using the classes we have implemented so far. If you want a quick review of the A* algorithm, see the Revisiting the A* algorithm section from earlier in this chapter. The steps for implementation of AStar are as follows:
using UnityEngine;using System.Collections;using System.Collections.Generic;
public class AStar {
public static PriorityQueue openList; public static HashSet<Node> closedList;
Read now
Unlock full access