A* Pathfinding Project

How to change stairs height?


#1

Hi, in my game for some reason the stairs on the left get detected but the stairs in the middle get classed as an obstacle. Is there a way to change the height of stairs?
Here are some pictures which’ll hopefully make it clearer:

Thanks :slight_smile:


#2

Hi

I suspect that your stairs in the middle go below the bounding box of the graph. Try to lower the y-coordinate for the graph.


#3

Ah yes that is it, I assumed it was something like that but thought increasing the ray length would fix, when it didn’t I assumed it’d be something different.

Thanks!