Hey, guys. I’ve just started a small project to learn how to use pathfinding with 2D.
I have multiple enemies of different sizes, and they all use the same grid for paths calculation. The big enemies are trying to squeeze between 2 obstacles, where they wont fit.
Should I create multiple grids for each enemy size or can I change pathfinding logic to take into account the enemy size?
Is there an easy way to generate different paths for enemies of different sizes?
You cannot make other units count as obstacles (well, you can. Some have had success with it, you can search the forums, but I usually do not recommend it). Moving obstacles is not a problem however. Check out the “Terrain” example scene which has a moving obstacle on a grid graph (assuming you are using a grid graph this will work).