AI Navigation & new realtime Unity's navigation systemI struggled lots of time to implement a satisfying navigation system for my NPCs. As the game deals with completely random architecture, it was impossible for me to bake a Navmesh before I build the game.
I needed a realtime system.
I started with messy wall collisions and turning decision coroutine, but the behavior when chasing the player in random-generated towns was still not really satisfying :
I was about starting to create a node system from scratch when I read about the brand new Unity's realtime Navmesh : I immediately tried to implement it. After painful hours ( I had to rethink NPC's AI coroutines structures a lot ) this finally was really worth it. The navigation system works very well, is intuitive and fast, and allow the player to build walls, buildings, which will impact in realtime on the NPC's path decision :
So, I wanted to thank eveyone @ Unity, for bringing us free and so much powerful software development, with so much new updates and functions every month.
You can read more about this Unity's new functionalities here :New Unity NavMesh Features