Posted August 10, 2022 by Louis
Thanks to the A* pathfinding project for unity. fast, reliable and accurate. I basically only have to program behaviors now which is super duper cool! I tried to use unity's built in navmesh but that turned out to break due to procedural generation. but A* supports runtime scanning a lot more! I urge anyone that wants nice and simple AI path finding to use this project!
Wandering: As shown above, the enemy wanders to random points around the map.
Investigating: If the enemy sees or hears you, but loses sight of you or stops hearing you. it will travel to the last known position.
Chasing: Upon seeing you, it will run towards you at a elevated speed. it's impossible to walk away and you're barely able to run.
Hearing: If you walk close enough to it. it will hear you. the distance is higher when you run. making it harder to evade.