Path going through walls help!

My character is trying to cut through walls.It ends up running in place while looking at the target.

Screenshot of the player that is moving’s A* info

Update, I thought the walls would be detected automatically, because they have box colliders.

So i changed the obstacle layer mask to default,and no travel nodes were made.

So then I change the obstacle layer mask to WALL_TEST and made the wall have WALL_TEST as a layer, it works now but I am a bit sad

Do I have to mark each and every obstacle I thought the max slope and height could figure this out for me automatically.

Hi

It looks like the blue graph may be passing through the box below and inside it.
Since the box is not marked as an obstacle the graph happily be generated with a path going through it.
You can also increase the ‘character height’ if you do not want the character to be able to pass under “bridges” that low.

The recast graph can more easily handle these situations as it just takes a bunch of objects with no regard to which ones are obstacles and which ones are not and generates a reasonable navmesh from them.

1 Like