I'm running some tests with my new AstarGrid2D I made but I haven't gotten past the first test since it thinks 43,46 is out of bounds, which it can't be because the size is 160x80 so like- idk how that point is out of bounds. I'm genuinely stumped. I can't find anything in the docs or in tutorials about this.
#AStarGrid2D out of bounds
1 messages · Page 1 of 1 (latest)
do all positions return out of bounds or just specific ones?
I haven't tested every position yet but I'll test a few more
30,25 was in bounds
Weird
try to find the exact cutoff
117 and up on the x side is out of bounds
35 and up for the y side is out of bounds
you are absolutely sure that the "pathfinding_tiles.region.size" is larger?
Yeah I even printed it to make sure
are you printing pathfinding_tiles.size or pathfinding.region.size
wha...
does the size ever change anywhere outside of load_pathfinding?
It doesn't
maybe the walls rect is changing. I see you are setting the size with walls.get_used_rect
or is that a unique instance of the rect (aka doesnt change & is only accessible with the variable you set it to)
The used rect of walls is basically the rect of the world which is why I set region to that
Then I'm as lost as you.