+2 votes

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?
https://www.dropbox.com/s/ncbsktjjyrxefo6/isonav.zip?dl=0

in Engine by (29 points)

1 Answer

0 votes

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.

by (29 points)

Consider accepting your own answer or hiding the question altogether.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.