- Joined
- Dec 21, 2006
- Messages
- 490
hi
i am working on a TD and i want to show the length of the maze for every player .The distance is the number of fields between the points. luckily sc2 has a function which calculates the pathing distance between 2 points, BUT it calculates wrong!!! everything is correct if no building/unit is in the path. It doesn't fail calculating all the time, it always depends where the building is and sc2 units seem not to move the shortest way all the time. does any1 have an idea as an explanation?
No building: distance is 11
with building(footprint 1x1): distance is 21
i am working on a TD and i want to show the length of the maze for every player .The distance is the number of fields between the points. luckily sc2 has a function which calculates the pathing distance between 2 points, BUT it calculates wrong!!! everything is correct if no building/unit is in the path. It doesn't fail calculating all the time, it always depends where the building is and sc2 units seem not to move the shortest way all the time. does any1 have an idea as an explanation?
No building: distance is 11
with building(footprint 1x1): distance is 21