Skip to content

The code for a short tutorial on how to create a basic waypoints-based patrol system in Unity/C# (in text or video format)!

License

Notifications You must be signed in to change notification settings

MinaPecheux/UnityTutorials-BasicPatrolSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Unity/C#] A basic patrol system (using waypoints)

Mina Pêcheux - October 2021

How can we create a basic patrolling system for character unit 3D movement that is waypoints-based? Let's discover more in this video/text tutorial: "How to make a basic patrolling system in less than 30 minutes" :)

You can read it in text format on Medium, or watch it on Youtube.

thumbnail

In this less than 30 minutes-tutorial, I'm discussing why adding an idle behavior to your units can be interesting, how to get a unit moving between waypoints and how to have it look at its target continuously or wait for a while at each waypoint!

This Github repo contains the script that is coded in the tutorial, plus an alternate version of the Patrol class, PatrolCoroutines, that shows how to implement the same basic patrolling system using Unity coroutines :)

demo

About

The code for a short tutorial on how to create a basic waypoints-based patrol system in Unity/C# (in text or video format)!

Topics

Resources

License

Stars

Watchers

Forks

Languages