Skip to content

Instantly share code, notes, and snippets.

View jRayShumway00's full-sized avatar

Johnny Shumway jRayShumway00

View GitHub Profile
@jRayShumway00
jRayShumway00 / AIController.cs
Last active July 24, 2021 00:53
Written as a tutorial to explain how to make an AI randomly navigate a NavMesh in Unity3D!
// We need UnityEngine and UnityEngine.AI to make this script work!
using UnityEngine;
using UnityEngine.AI;
/// <summary>
/// Welcome to the Random AI Naviation tutorial. I'm trying something different. In this
/// tutorial I will help you understand how to make an NavMeshAgent in Unity randomly
/// navigate the NavMesh. This is a basic script and you may expand upon it and use it
/// for free with no attribution required. Continue reading the comments for detailed
/// explanations for each line of code.