Implementation

In order to get started with A*, we'll have to take the concepts and apply them as concrete implementations in the code. In our sample code, we break the A* system into a few key components: the Node, GridManager, PriorityQueue, and AStart classes.

Let's break down what each class does in the following few sections.

Get Unity 2017 Game AI Programming - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.