I am having problem understanding the new AStar node
I want to translate this grid to AStar
var map = [
[1,1,1,1,1,1],
[1,0,0,0,0,1],
[1,1,1,1,0,1],
[1,0,0,0,0,1],
[1,0,1,1,1,1],
[1,0,0,0,0,1],
[1,1,1,1,1,1]]
1 = Not walkable
0 = Walkable
I want to to find the path from map[1][1] to map[5][4] .
I assume that if every cell has its on index starting from 0, it could be:
print(get_id_path(7,35))