Performance of Altering grid nodes

I have many smallish objects (floating space debris) that drift slowly. I would like to periodically update the pathgrid to account for them. I could have the update change walkability or cost of the nodes. Is there any advantage either way, particularly the performance. The typical obstacle covers around 10 grid nodes.

Hi

If you use physics to update the regions (updatePhysics=true), that will be slower than just marking all nodes inside the region to be unwalkable.

If you just modify penalties, that can be faster since you could then set .requiresFloodFill to false on the GraphUpdateObject.

See http://arongranberg.com/astar/docs/class_pathfinding_1_1_graph_update_object.php#a2efbcd7b73c47dce7781034f38b35da6