Hey,
I have different creature types and I want to limit where they can walk while choosing their random waypoints.
Beach creatures - can’t go in the forest, can only pick a random goal that’s in it’s defined walk area.
Forest creatures - can’t go on the beach…
I have tried building different navmesh surfaces for each AI type and marking areas as not walkable, but I imagine this will get pretty messy after awhile, since when you select a navmesh surface it shows all of the navmesh surface’s colors on top of each others, making it really hard to see what’s going on.
I’ve also tried building an editor tool that makes a polygon and then the AI can only pick points from that polygon, but that doesn’t mean the AI cannot go outside of that polygon while trying to reach a point if that path is the closest one. I also didn’t manage to make this to the end, because I figured out while filtering which triangle to pick next (depending on AI position and direction) it will be a very slow algorithm, because I have an open world game.
I am looking for suggestions and even assets on the store that will allow me to “draw” an area for each AI and it won’t be able to pick a random point and step outside of that area.