Game Development: Pathfinding with Unity

Learn How to Develop Pathfinding Algorithms, like A*, Dijkstra, Steering Behaviors and NavMesh for the AI of your Agents

3.85 (26 reviews)
Udemy
platform
English
language
Game Development
category
213
students
4.5 hours
content
Dec 2020
last update
$44.99
regular price

What you will learn

You will be able to develop a Steering Behaviour System

You will be able to develop a A* Algorithm

You will be able to code a Dijkstra Algorithm

You will be able to use Pathfinding Systems

You will learn how to use the Tilemap and Grid Systems in Unity

You will be able to use Unit's NavMesh

Description

Have you ever wondered how NPCs and monsters find paths from one point to another?

In this course you are going to learn how to create Steering Systems that avoid obstacles so your agent can run a circuit. As you are learning that, you are also learning how raycasts, sensors and Gizmos work.

You will learn to code the Pathfinding Algorithms A* and Dijkstra in C# and Unity. They will be made using Unity's Tilemap System so you can very easily understand how they work and what is going on.

Then, how to apply the A* Algorithm in tridimensional environments, making a controller of agents that can make those individual agents pursue a Player.

Lastly, you'll learn how to use Unity's NavMesh and create a system where agents can jump over empty spaces, climb ladders and all.

Content

Introdução

Introduction
Downloading Unity and Preparing the Environment
Getting a Text Editor

Steering System

Preparing the Environment
Gizmos
Creating the Circuit
Basic Rotation
Changing to the Next Waypoint
Sensors and Raycasts
Side Sensors
Improving Sensors Code
Avoid Steering
The Problem with Steerings

Pathfinding Algorithms

Creating a New Project
SetTile and SetColor
Board and TileLogic
Algorithm and Finding the Objective
Preparing for the Dijkstra
Dijkstra Algorithm
Blocked Tiles
Different Move Costs
Building the Path Based on the Search
Pathfinder's Inheritance
Coding the A*
Understanding the A* Code
Fixing Bugs and Different Types of Lists

Applying A* in 3D Environments

Preparing the Environment
Adapting A* to 3D
Creating the World Positions
Detecting Obstacles
A* Agent
WorldPosition to 2D
Automatically Updating the Path
Agent Controller

Screenshots

Game Development: Pathfinding with Unity - Screenshot_01Game Development: Pathfinding with Unity - Screenshot_02Game Development: Pathfinding with Unity - Screenshot_03Game Development: Pathfinding with Unity - Screenshot_04

Reviews

Esteban
July 31, 2023
Hasta ahora muy bien explicado los algoritmos de pathfinding. Aprendí mucho mejor que en otras clases.
Fernando
July 17, 2023
I have mix feelings about this course. The course itself "does the job" of pathfinding and is actually very very simple to adapt to multiple different projects. Is very basic so a beginner could follow it pretty easily (if you stop every now and then to make some research of some of the stuff). However, the intructor lack the necessary explanation for some of the content. Is important to be clear when trying to teach someone. For example, Dijkstra is actually pretty identical to A*, not completly different. A* is an update version of Dijkstra that the only thing it does is trying to find a better path with heuristic function. However the course teach some stuff, it barely touches the true concept of pathfinding algorithms, there purposes, uses, etc.
Daniel
March 16, 2023
Wanted to learn about Pathfinding. Found a little bit about the topics A* and Dijkstra and wanted to have a good pratical explanation and example. Found this course and I'm happy with it. Worked with NavMeshAgents in the past, now I understand it way better. You can easily go on extending the examples by own ideas or for own projects. As the course said you should have experience with Unity/C#.
Vladimir
June 20, 2022
the instructor does not include any code with the class, so you have to watch him type and manually copy every single line of code. Also, he does not explain any concepts like Vectors. This is not an efficient way to learn!
Brian
April 25, 2022
The course helped me learn the a-star algorithm, which was my primary objective. There were parts though where I felt frustrated. For example, the instructor would just let the video tell us what to do. Since there was no verbal explanation I had to rewatch those segments several times just to catch which scripts were being copied from and pasted to. Even if one isn't following along with the video it is a challenge to understand what is happening in one viewing.
Wayne
March 16, 2022
This was a nice intro to A* and Dijkstra algorithms and use of the NavMesh feature in Unity. Thanks for putting the course together Henrique...
Shuaib
March 20, 2021
Henrique is a great teacher and I found this course was well worth the price. Thanks for the quality content!

Charts

Price

Game Development: Pathfinding with Unity - Price chart

Rating

Game Development: Pathfinding with Unity - Ratings chart

Enrollment distribution

Game Development: Pathfinding with Unity - Distribution chart
3433582
udemy ID
8/20/2020
course created date
11/21/2020
course indexed date
Bot
course submited by