SebLague / Pathfinding

MIT License
668 stars 251 forks source link

Corners problem #12

Open Blaxor opened 3 years ago

Blaxor commented 3 years ago

Hi guys , i have this problem , anyone know how to solve it? I think is something about corners but idk sure . I want the unit to not be able to go between them . image

TheRaizer commented 3 years ago

To make this change you need to check cardinal neighbors instead of moore neighbors. You may also want to use manhattan distance.