Hey, I'm wondering how I can use polynav with 2d toolkit's TileMap
Polynav is a simple 2D pathfinding solution that uses polygon colliders/box colliders on obstacles.
http://forum.unity3d.com/threads/poly-nav-pathfinding-for-unity2d.224962/I'm wondering how I can make my tiles obstacles with polynav.
Each "obstacle" object needs to have a BoxCollider2D or PolygonCollider2D, and a "PolyNavObstacle" script.
My tiles are all squared, and they are going to be changed/deleted ingame.
I was thinking I need to find the edges of all "islands" so to speak, and make seperate polygoncollider2ds from them.
Note: Using prefab tiles would create too many gameobjects.
How can I achieve this? It's been bugging me for a while and I can't figure it out.
I'm sorry if this was messy and hard to understand. I've never been good at explaining things :/
Any thoughts at all would be appreciated.Thank you
EDIT: I'll be trying to modify the 2d toolkit code to use polygon colliders instead of edgecolliders. Not sure how yet, but I'll try.