I am making a turn based 2d game and i have 2x2 and 3x3 units and i need them to move around the map where most other units are 1x1…
What are my options? I think i read somewhere to use a second grid graph but i dont think that works…
I need keep everything in the 1x1 grid but when a larger unit moves the path should check if the neighbour tiles are blocked or not in order the the large unit to pass.
You might be interested in this page: https://arongranberg.com/astar/docs/multipleagenttypes.html
Note that there is a second approach for grid graphs at the bottom.
i will try some of the things mentioned and post my results
I was looking at implementing this and i see 2 problems.
a) the code seems to support 3x3 and 5x5 but not 2x2 and 4x4? is that the case?
b) i am already using a traversal for dynamic blocks (BlockManager.TraversalProvider), can somehow both traversals be used or i should somehow manage dynamic blockers inside my other traversal