Having issues with implementing the pathfinding

All your PathNodes have the same gridPosition because you never set it.

Your PathNode constructor is empty. It should look like this

public PathNode(GridPosition gridPosition)
{
    this.gridPosition = gridPosition;
}
1 Like

Such a simple thing caused such a headache. Isn’t coding grand?

But it looks like everything is fully working now!

Thank you so much for your help!

1 Like

Indeed, it is. Sometimes the issue is several scripts away from the error message.

2 Likes

Yeah, we would have been going back-and-forth for a while if I couldn’t see the project. It wasn’t a straight-forward bug to find.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms