Unity Learn home
View Project Content

The Mathematics of AI

Project
Intermediate
+60 XP
2 Hours10 Mins
(770)
Overview
Summary
In this project, you will learn about the fundamental mathematics used in moving characters around in a game environment. You will follow along as geometry and trigonometry is used to develop methods that move and turn game characters. With these techniques you'll put together an auto-navigating character that represents the basis of the simple artificial intelligence used in developing non-player characters. In doing this you will discover the mathematics behind some of Unity's most used Vector and Angle manipulating methods.
Project Objective
  • Discuss the fundamental mathematics used in developing artificial intelligence for game characters.
  • Understand the importance of vectors to game mechanics
  • Determine the angles between vectors for use in facing one game object toward another.
  • Explain the use of the dot product and cross product in working with angles.
  • Develop a game character that can auto-navigate towards a goal location in a game environment.
Select your Unity version
Last updated: January 24, 2023
2021.3
2019.4
2019.3
2019.2
2019.1
Language
English