Objects not finding a path around obstacles

Hi,
Im using a* pathfinding project for my enemies , when they spawn in they find my player and move towards it.

But they try to go through the walls, which they can’t, instead of looking for away around it.

The walls are marked as obstacles.

I have tried both the mask in the a* settings and the seeker settings, ive tried messing around a lot with all the settings but nothing seems to work…

Help would be greatly appreciated!

Hi

Could you post a screenshot with the graph and the settings that you are using?

screenshots

graph settings


grid on screen

seeker

Gif of what happens:

script

http://hastebin.com/ihuqoqasuz.cs

Hi

You are using the ‘Ray’ collision testing mode which will only check if there is an obstacle right at the center of each node. However your walls are not at the center of the nodes, so they are not found. Try using a different collision testing mode or move your walls. (note that the lines you see are the connections between the nodes).

It paths around the wall now

Thank you very much, is there also a way I can avoid it sometimes getting stuck like so?

Hi

Maybe reduce the ‘pick next waypoint distance’?