A* FAQ

I only get non-walkable nodes when I try to generate the grid!

There can be two things causing that:
1. If you are using the Raycast mode, then you have to make sure there is ground where the grid should be generated, make sure the layermask is set to a correct value (i.e it contains the ground layer).

2. The Physics settings (walkable-check in pre 2.5 versions) can make the script think the ground is an obstacle and thus making every single node unwalkable, to prevent that, put the ground and other things the player should be able to stand on in a separate layer, then change the layermask in the physics settings to ignore that layer.



I’m using terrain mode and the grid isn’t generated correctly! And I get an error message saying something about a 60000 vertex limit.

That is because the terrains GetHeight function does not support terrains with more than 60K vertices, to solve this you need to use Raycast mode, put the terrain in a separate “Ground” layer, and then change the raycast’s layermask to only include that layer.

Leave a Reply