Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | supagu |
I’m trying to get Navigation2D working on a TileMap.
In the attached screenshot, I have:
- Setup a NavigationPolygonInstance (which you can see in 2, and in game 3).
When I click the mouse (see 4) I get empty coordinates returned from get_simple_path on the Nav2D, even though the polygons overlap.
If I click inside the same polygon as the character, I get a valid set of points.
Is there a special way to merge these polygons?
I’ve seen other people say it should just work: https://forum.godotengine.org/1790/how-to-implement-pathfinding-with-a-tilemap?show=1790#q1790
https://drive.google.com/open?id=1lsXUFawmC-GvstA3wmnaCfKauLyEQ8k5