Hi, i am making a 2D tile puzzle game. I am the newbie of the A* pathfinding project. I used the grid graph for my pathfinding.
picture1 here
the red cube means the enemy, the orange cube means the obstacle and the small character is the Player
picture2 here
There is a problem that you can see in the picture. Only one of the orange cube can block the path in the pathfinding system. Another two orange cube cannot block the path. The enemy can still pass through the road that the orange cube blocked the path. Therefore, how can i solve for this problem?
Sorry for my English is not very well since i come from Hong Kong.
Hi
You can try to increase the “Diameter” setting in the grid graph settings -> Collision Testing.
Also make sure that the obstacle layers are included in the mask.
Thank you very much
i changed the collider type from ray to sphere, and change the “Diameter” setting, then it works !!!