Can I use Navigation2D with Isometric TileMap? If yes, then what form my NavPolygon should have?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By NerdP
:warning: Old Version Published before Godot 3 was released.

Now i have problems with this case.

I also couldn’t make this working. Everywhere I ask and all respond the same way that it works by doing the same as for regular square tilemaps. It works for a square tilemap, but not on an isometric tilemap.
I believe it is either the case that I don’t know the workflow or it is a bug.
I am talking about the auto-navpath.

One workaround is, not to do auto-navigation, instead put the navpath as a sibling of the tilemap and do all adjustments manually.

vinod | 2016-04-11 16:32

I also have problem with this. See my question here with a sample project: What am I doing wrong with isometric tileset and navigation? - Godot Engine - Q&A

I have, from what I can see perfect navpolys in the tilemap but still its not working.

It would be really helpful if someone could either explain to me what I’m doing wrong or maybe write a small guide.

patrik | 2016-04-13 18:45

:bust_in_silhouette: Reply From: Julian Murgia

Yes !

Your Navigation2D has to cover all the map, but you’ll have to draw inner polygons around the walls so that your object won’t be able to find a path through them.

I would be very grateful if you could post just a simple tilemap source scene with the navpolys correctly setup!

patrik | 2016-04-13 18:47

:bust_in_silhouette: Reply From: sergicollado

Be careful with NavPolygon in tiles, It’s important to use grid snap, If not It doesn’t works well

Thanks! Snap is worked for me!

NerdP | 2016-04-14 17:56

:bust_in_silhouette: Reply From: patrik

I got this to work now with 64x64 isometric tiles. My previous problem was i had a square polygon which i rotated by 45 deg. This does not work, you cant transoform the polygon or pathfinding will not work. I had grid and snapping to 32px.