I am playing around with a layered grid graph on a generated terrain. A long with the terrain there is a water table (colored in white for clarity), it has a box collider and has “water” as the assigned layer. I am using the “water” layer as the collision testing mask and the “terrain” layer as the height testing mask. For some reason there is large parts of the terrain being marked as unwalkable even though the terrain in these areas is above the water table. I am using capsule as the collider type with a height of 2. Am I missing something? Should the terrain above the water table not be marked as walkable?
Hi
Sorry for the late answer.
Maybe the capsule is slightly touching the water?
Try using the “Offset” parameter to move the capsule upwards.
I tested it with a regular GridGraph as well. Same issue. The capsule height/Length I am using is 2. It appears that raising the offset on the collision testing to 0.99 gives the results I would expect. Setting it to 1 completely ignores the water plane.
Weird…
Something is probably not right with your scene. I am not totally sure what and it is hard to say without checking out the scene myself. But since you seem to have been able to get the result you wanted, I guess everything is ok.