JulianGrey / Unity3D_Pathfinding

Slowly but surely learning how to program pathfinding, with the view of making a game or virtual world out of it.
0 stars 0 forks source link

Pathfinding still bork'd #3

Closed JulianGrey closed 9 years ago

JulianGrey commented 9 years ago

Prioritising the distanceMoved variable on tied "moveCost" nodes fixed the problem of moving from one side of a line of unwalkable nodes to the other, as well as getting around some corners, but it is still struggling with more complex paths around maps with a "+" style wall.

Fairly certain prioritising the distanceFromTarget variable over the distanceMoved variable will fix this.