AstarGrid2D, CellShape in Godot 4.3

Godot Version

4.3 beta 2


I’ve recently trying to make a tactical RPG game. This means I need an isometric pathfinder, wich I tried with the AstarGrid2D. Seeing the source code, I came ro realize that it was already made and was on Godot 4.3.
However, when I made the code, that didn’t work. Can someone explain why?

Does it not work at all or does it not work as expected? Can you elaborate on what is not working?

If I had to guess, it might have something to do with how you define the region. Why do you set the position of mapRect to Vector2i.ZERO? I think you should set the astar.region simply like this if you want the region to cover the used rect of your TileMap:

astar.region = get_used_rect()