A* Pathfinding Project

[Solved] Trouble getting the correct passable nodes


#1

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?


#2

Hi

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


#3

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?


#4

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


#5

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


#6

And it’s set to “Polygons”?


#7

AHH that was it. Thanks so much!