Closed ssardina closed 9 years ago
Original comment by Sebastian Sardina (Bitbucket: [Sebastian Sardina](https://bitbucket.org/Sebastian Sardina), ).
I know why! With the new way of dealing with WATER (not passable from other terrains) it is not checking for corner cutting across water. Here is the image:
So all is going well except corner-cutting across water. this should not be allowed
Original comment by Sebastian Sardina (Bitbucket: [Sebastian Sardina](https://bitbucket.org/Sebastian Sardina), ).
Fixes #10 - improved cost model of water - default is inf unless it is coming from water
Original comment by Sebastian Sardina (Bitbucket: [Sebastian Sardina](https://bitbucket.org/Sebastian Sardina), ).
Fixes #10 - improved cost model of water - default is inf unless it is coming from water
Original comment by Sebastian Sardina (Bitbucket: [Sebastian Sardina](https://bitbucket.org/Sebastian Sardina), ).
Fantastic, works!
Original report by Sebastian Sardina (Bitbucket: [Sebastian Sardina](https://bitbucket.org/Sebastian Sardina), ).
I have fixed the bug with uniform variable and improved substantially how costs are set. However, there is still something strange, seems some diagonals are allowed where it should not. A* uses p4-internal cost and it returns a path that is cheapest that the optimal:
The real cost should be 491.0559 as returned by the JPS-Patric which computes cost itself:
variable self.uniform is TRUE in both cases so that we are in the standard setting. See that A* does 1 step less and the difference in cost is a diagonal move vs 2 straight moves. But why??? Maybe you can see it more clear than me. Does it have to do with corner-cutting maybe?