I am trying to make a 2d top-down game where the player moves obstacles in order to block enemy AI from advancing, but I need the obstacles to only block certain types of enemies.
I've tried using Unity obstacles but they carve through every navmesh so every Agent will avoid them (And I need to set them to carve because I need enemies to take another path if they are stuck) I've thought about having an obstacle that change the area beneath it instead of carving through the mesh, but I haven't seen any ways to dynamically do that without baking the whole navmesh again.
Is there any way to do that, or a plugin that could give me those features ? Thank you
You should definitely check out the A* Pathfinding Project. After using this I really can't go back to using Unity's built-in navmesh system.
https://arongranberg.com/astar/
They have built in solutions for exactly your type of situation, ie. there are different layers/groups of AI.
There is a free version available if you would like to try it out
https://arongranberg.com/astar/download
Here's a comparison between Free and Pro