So im playing a bit around with tilemaps and path finding, but cant seem to get it to Work correctly.
I have two tilemaps. 1 tilemap just contain the Graphics, and the 2nd one i use as an obstacle map.
So when a graphic is placed on the graphic map that needs to block movement i update the same tile on the obstacle map.
However after i have updated the obstacle map for the unit with path finding it get stuck. Some times it can move two times.
I have tried to lower the cell size to 1 (which is pretty extreme) but still it get stuck.
I have also tried to reduce the size of the collision mesh on the obstacle map. That doesnt help either.
Anyone had any success using these two things together? And if so have any suggestions what im doing wrong?