So I was following this tutorial series:
While this working well in the beginning, when I attempted to implement thread, is broken. The code for generating the path would never finish.
When I only had 1 seeker and 1 target, it worked fine, but having 2 or more seekers target the same target and it breaks. I tested it with 2 seeker following 2 different target where the paths would not cross and everything worked fine. The only thing that makes sense is that in the threads that are running at the same time are trying to modify the same node in the grid causing bad things.
I though it was weird that the path generation was modifying the node that the main grid stores directly, if this common?
How would I be able top handle generating multiple paths at the same time using thread for this kind of setup?