I have a grid graph and want to define zones that have an interior and a border zone. Specifically: Areas with a fence around. The fence should be one tag (so nothing crosses through it) while the interior should be a different tag (so animals know where they should be).
I can’t seem to get this right. It appears that the execution order of two GraphUpdates is not fixed, so sometimes the interior doesn’t get set properly.
What am I doing wrong?
To illustrate, this is what I want:
red (edge/border/fence) has one tag, green (inside) has another.
I have tried having two GraphUpdate components that overlap each other, i.e. the red one is larger than the green one. But it seems that sometimes the green one is calculated first and then I end up with only the red one.
I do need tags, I can’t simply set the red to not walkable (I have some NPCs that can jump over or walk through the fence).