Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minapecheux/unitytutorials-basicpatrolsystem
The code for a short tutorial on how to create a basic waypoints-based patrol system in Unity/C# (in text or video format)!
https://github.com/minapecheux/unitytutorials-basicpatrolsystem
ai csharp patrol system unity unity3d
Last synced: 2 months ago
JSON representation
The code for a short tutorial on how to create a basic waypoints-based patrol system in Unity/C# (in text or video format)!
- Host: GitHub
- URL: https://github.com/minapecheux/unitytutorials-basicpatrolsystem
- Owner: MinaPecheux
- License: mit
- Created: 2021-10-17T15:31:19.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-23T07:43:50.000Z (over 2 years ago)
- Last Synced: 2023-03-07T15:08:27.774Z (almost 2 years ago)
- Topics: ai, csharp, patrol, system, unity, unity3d
- Language: C#
- Homepage: https://minapecheux.com
- Size: 1.41 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [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](https://mina-pecheux.medium.com/how-to-make-a-basic-patrolling-system-in-unity-c-3bec0cf63478), or watch it [on Youtube](https://www.youtube.com/watch?v=oD7akZVgT4I).
![thumbnail](imgs/thumbnail.png)
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](imgs/demo.gif)