Nav2D with TileMap

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By supagu

I’m trying to get Navigation2D working on a TileMap.

In the attached screenshot, I have:

  1. 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:

:bust_in_silhouette: Reply From: zbyszko

you can’t merge navmesh

So there is no way to do what I want?
What is it that other people are doing to get this to work? Do they have a single navigation polygon they are generating by hand to follow their tilemap?

supagu | 2018-09-13 10:31