I am using pathfinding in a 2d game with AI spaceships and walls as obstacles. I want to add force data in nodes that are close to obstacles to have better steering of my AI ships when following paths.
Here is an illustration of what I want:
I found EdgeNode on GridNode but this is not implemented yet.
I would like a performant way to calculate the forces. My guess is that I want to start with all the edge nodes and check their connections, and when all the edge nodes have been calculated I could go to all the connections from there and do the same thing again, and again.
Is there a smarter way of calculating this maybe ?