A* Pathfinding Project

[Solved] Trouble getting the correct passable nodes


Hello, I’ve just started using A* and I’m having trouble getting it to work. I’ve got a layer for my obstacles and im trying to get a grid graph of the area inside of it, but this is what I’m getting:

I’ve tried adjusting the diameter of the collider to no avail. Here are the settings on pathfinder script:

Any suggestions?



I believe there is a setting on the collider to change it from “edges only” to a collider that actually covers the whole surface.


Hey aron, thanks for replying so quick.

Can’t seem to find the setting, I’m using a tilemap collider + composite collider so it should already be covering the whole surface right?


I think it’s this setting on the composite collider.


Ahh, I already had that setting on. This is what it looks like:


And it’s set to “Polygons”?


AHH that was it. Thanks so much!


For anyone reading this and still having trouble after setting the Geometry Type of the Composite Collider 2D to “Polygons”, I would reduce the Collision Testing Diameter. 0.97 worked for me.