Hi I made a post regarding a possible bug with path finding, but it got closed due to this:
"Closing, as this is by design. The Pathfinding behavior will report 'path not found' if you send it in to an enclosed area (as in, an open space surrounded by obstacles). If you tell it to move on top of an obstacle, it will find the nearest open space and move there instead. That's all that is happening here."
Since i cant response to it. And still dont get why it shouldnt work and as im pretty new to the path finding behaviour my self, maybe someone here can explain why it doesnt work.
I have added some screenshot further down, that might make it easier to understand what i mean.
What i dont understand, is what is meant with enclosed area, as it is not send in there? If i place the green box about 20 pixel or so further down or up the screen from the red outline, so it still blocks the opening it works fine, and the path finding will find a path to the side of green square thats pointing away from the enclosed area.
But if i move it into the red outline it wont, even though the side of the green square pointing away from the enclosed area, is just as available as in the other tests.
This one doesnt work.
<img src="http://imageshack.us/a/img268/9292/image1vuye.jpg" border="0" />
This works fine.
<img src="http://img829.imageshack.us/img829/6762/image2jzc.jpg" border="0" />
This works fine
<img src="http://img401.imageshack.us/img401/3285/image3qi.jpg" border="0" />
I dont really see what the big difference is between these cases when it comes to finding a path, can anyone explain why placing the green square such a short distance from each other, can make such a big difference?
It will be a great help as its really screwing up my game :(