I’m using a point graph for a 2.5D platformer. It works pretty well for the most. I just get the next node in the graph and based on it’s position compared to my AI I can tell my AI whether to go left or right. Pretty straight forward.
However, if I Repath (which I want to do as my target - the player - may change position) it often selects the node behind it as the starting node of the new graph so briefly goes backward before correctly following the path again.
I assume it selects the node behind it sometimes as that’s technically closer, but I’m not sure why that would ever be desirable. Is there something I can do to prevent this so it only selects the next node that is along the desired path when repathing?