#AStarGrid2D out of bounds

1 messages · Page 1 of 1 (latest)

lime kite
#

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

storm breach
lime kite
#

I haven't tested every position yet but I'll test a few more

#

30,25 was in bounds

#

Weird

storm breach
#

try to find the exact cutoff

lime kite
storm breach
lime kite
#

Yeah I even printed it to make sure

storm breach
#

are you printing pathfinding_tiles.size or pathfinding.region.size

lime kite
#

Oh

#

Got the same result

storm breach
#

wha...
does the size ever change anywhere outside of load_pathfinding?

lime kite
#

It doesn't

storm breach
#

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)

lime kite
#

The used rect of walls is basically the rect of the world which is why I set region to that

storm breach
#

Then I'm as lost as you.

lime kite
#

Ah okay

#

Should I move this to advanced?