UPDATE:
-I have tried using RecastMeshObj scripts to stop the creation of nav mesh area on top of the obstructions, however if these objects have any type of collider on them, it seems to invalidate the RecastMeshObj script (setting a object to “unwalkable surface” gets ignored). I suppose you could:
- Create duplicates of every object and use one set for nav mesh creation (then turn them off) and leave the second set in as actual geometry
- Choose not to rasterize colliders (but that may not be possible depending on how your scene is setup).
- Turn all colliders on applicable objects off, build the nav mesh, then turn them back on (best so far, but possibly quite time consuming).
However that still doesn’t solve the problem of nav mesh area being created inside the obstructions. I’ve tried:
- Turning “Walkable Height” to very high values (which can work), but I suppose if you have any tunnels/overhangs that could cause significant problems.
- Using Relevant Graph Surface, however that only seems to work when not using any tiles (as soon as you do start using tiles, RGS setups get ignored).
Hello everyone,
I’ve worked with Recast Graphs before but have never seen the result I’m getting now. If you look at the picture, I’ve got 3 different sized cubes (meant to be obstructions on the nav mesh), 1 of which functions as I would expect, and then 2 that are not working as I would anticipate. I’ve separated the 2 issues below:
-
Walkable area on top of the larger cubes:
-I’ve never seen this happen before and I’m concerned that it may cause ‘impossible’ destinations to get calculated for agents. -
Large cubes are not invalidating area inside themselves:
-Even more problematic is that the cubes are not invaliding the space inside themselves and are instead creating new separate regions inside themselves (I moved the cubes a bit so you can see this in the picture). I don’t believe I’ve ever seen this before, and I don’t have a good explanation as to why this is happening.
Any insight into what is going on is appreciated, thank you for reading.