#2D Navigation with procedural tilemap

1 messages · Page 1 of 1 (latest)

mystic forge
#

I have a tilemap that is procedurally generated at runtime. I got it working when I make and bake the nav polygon by hand, but I can't seem to get the right effect when done in code and I can't see how to show the nav poly in run time so I can even see if it's being created properly.

I feel like I have it close, but the nav agent is ignoring obstacles and I'm not 100% sure there is a polygon at all.

#

I've got it partly working. I added the group name to the tilemap which seems to have turned on obstacle avoidance again. However the nav agent still keeps giving the NPC a path that extends into the water. I turned off navigation on the water layer but that hadn't helped.