I'm trying to make a game at the moment and have some trouble with the A* algorithm for path finding.
In the picture the orange and rainbow cells are walkable, but the orange cells have walls around them that should not be crossed. I don't know how to define these walls for my A* algorithm.
So my player is going over the wall to get to the point (red path) but I want it to avoid the wall (green path).
If anyone has an idea, thank you :)