What am I doing wrong with isometric tileset and navigation?

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

I have used the NavigationPolygon 2D demo as a start but then having a tilemap with NavigationPolygonInstance instead of having the navpoly directly below first node. This works perfectly in square tilesets but I cannot get it to work with isometric tilesets.

I guess it is something with polygon overlapping but its hard to know since I cannot find a way to extract the navpoly from the tilemap to draw it.

If someone could look at this simple code and maybe understand what I’m doing wrong I would be very grateful! The tilemap is 64x64 and I’m snapping grid in the navpoly at 32x32 so i guess it should not overlap?

Or is it something else I’m missing?

:bust_in_silhouette: Reply From: patrik

My problem was i used a rectangle as a polygon and then rotated it by 45 deg. It works when i draw a correct polygon.

Consider accepting your own answer or hiding the question altogether.

Bojidar Marinov | 2016-04-14 08:46