Source code below!
This Unity3d tutorial introduces the NPC Controller /NPCPatrol scripts. The perfect tool for creating advanced NPC patrol and pathfinding behaviors. With the tutorial, you can easily create pathfinding behaviors that allow NPCs to roam freely around your game world, navigate complex terrain, and follow more interesting patrol paths. Advanced features such as node-based destinations, collision avoidance, and customizable speed settings make it easy to give your NPCs a wide range of actions. These node based waypoint scripts make an essential tool for ensuring your NPCs are the highlight of your game.
Source: https://gist.github.com/walterreid/b9...
#unity #unity3d #tutorial #tutorials #source #sourcecode #pathfinding #npc #waypoint #navmeshagent #gametutorial