Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.


The Beginner's Guide to Artificial Intelligence (Unity 2022)

via Udemy


A practical guide to programming non-player characters for games in the Unity Game Engine with C#

What you'll learn:
  • Design and program NPCs with C# in Unity
  • Explain how AI is applied in computer games
  • Implement AI-related Unity Asset plugins into existing projects
  • Work with a variety of AI techniques for developing navigation and decision making abilities in NPCs

Do your non-player characters (NPCs) lack drive and ambition? Are they slow, stupid and constantlybanging their heads against the wall? Then this course is for you. Join Penny as sheexplains, demonstrates and assists you increating your veryown NPCs in Unity with C#.All you need is a sound knowledge of Unity,C# and the ability to add two numbers together.

This course uses Unity Version 2021.3 LTS

In this course, Penny reveals the most popular AI techniques used for creating believable character behaviour in gamesusing her internationally acclaimed teaching style andknowledge from over 30 years working with games,graphics and having written two award winning books on games AI.Throughout, you will follow along with hands-on workshops designed to teach youabout the fundamentalAI techniques used in today'sgames. You'll join in as NPCs are programmed to chase, patrol, shoot, race, crowd and much more.

Learn how to program and work with:

  • vectors

  • waypoints

  • navmeshes

  • the A* algorithm

  • crowds

  • flocks

  • animated characters

  • vehicles

  • and industry standard techniques such as goal-oriented action learning and behaviour trees.

Contents and Overview

The course begins with a detailed examination of vector mathematics that sits at the very heart of programming the movement of NPCs. Following this, systems of waypoints will be used to move characters around in an environment before examining the Unity waypoint system for car racing with AI controlled cars. This leads into an investigation of graph theory and the A* algorithm before we apply these principles to developing navmeshes and developing NPCs who can find their way around a game environment. Before an aquarium is programmed complete with autonomous schooling fish, crowds of people will be examined from the recreation of sidewalk traffic, to groups of people fleeing from danger. Having examined the differing ways to move NPCs around in a game environment, their thinking abilities will be discussed with full explanations and more hands-on workshops using finite state machines and behaviour trees.

The follow-along workshops included in the course come with starter Unity asset files and projects complete withsolutions. Throughout, there are also quizzes andchallenge exercisesto reinforce your learning and guide you to express your newfound knowledge.

At the completion of this course you will have gained a broad understanding of what AI is in games, how it works and how you can use it in your own projects. It will equip you with a toolset to examine any of the techniques presented in more depth to take your game environments to the next level.

What students are saying about this course:

  • This has been my favourite Udemy-Unity course so far. It took me from literally 0% knowledge of how game AI is achieved, and took me to a whole new level. Waypoints, pathfinding, state machines, etc etc etc are all covered in-depth and will reveal the magic (spoiler alert: it isn't magic) behind making your computer characters seem like they really have a mind of their own.

  • Oh My God. I love her way of teaching things. I haven’t finished this course yet. But all i can say is that it is another brilliant course from her. Artificial intelligence by itself is a tricky thing to do. And before starting this course i never thought that i will understand anything in it. But i was wrong. With her style of teaching, you will learn how to move your characters in an ”intelligent“ way. This course is perfectly sliced and the pace is wonderful.

Taught by

Penny de Byl and Penny


4.6 rating at Udemy based on 2582 ratings

Start your review of The Beginner's Guide to Artificial Intelligence (Unity 2022)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.