In Example2D_15 scene
I set Erosion Iterations and ErosionUseTag, FirstTage as below Image
Basic Ground ,Tag 1 ,Tag 2 - erosion 0
Tag 3 - erosion 1
Tag 4 - erosion 2
Tag 5 - erosion 3
Tag 6 - erosion 4
is it right?
I set Only Basic Ground Traversable
but AI finds path by erosion 1 and Move
I set Basic Ground Taversable and Tag 3
but AI finds path by erosion 0 and Move
I set Only Tag3
AI find stange long path and Move
I set Only Tag1
but AI can not find path and can not move
what is thing that i misunderstand??
sorry for bad English
and thank you for your reading
When erosion is used then every node that is adjacent to an obstacle will get the tag first tag. Every node 2 nodes from an obstacle will get the tag first tag + 1. Every node 3 nodes from an obstacle will get the tag first tag + 2 and so on until it gets to the tag first tag + erosion iterations. The nodes which are further away from obstacles will still have the Basic Ground tag.
In your example first first tag = 3 and erosion iterations = 1 then all nodes which are exactly 1 node from an obstacle will get tag 3 and all other nodes will get tag Basic Ground (0).
Keep in mind that you can show an overlay of the tags in the scene view if you set the ‘Graph Coloring’ mode to ‘Tags’. To see the tags more clearly you may want to enable ‘Show Surface’ in the grid graph settings.
If your goal is to prevent a unit from going too close to the walls, then you should disable the first few erosion tags, but keep the Basic Ground tag.
very very Thank you for your reply