DGaters
1
A small problem, the pathfinder can’t find a path lower then MaxClimb even though there is Node connections, if there is no walkable path.
I create my own connections, diagonal and jump up/down (LayeredGridGraph).
With step(left), it can jump down as it should, even if the step is out of reach.
![WithOutStep](//forum.arongranberg.com/uploads/default/original/2X/0/08048cb1e51b1551287945ac41bc7a27184b628a.png)
Without the step it can’t jump down.
However the ConstantPath (the spheres) always finds all positions in range.
Can I disable the MaxClimb check and only follow the Node connections when checking for a path somewhere?
Hi
How do you add the custom connections?
DGaters
3
First I clear the node with
FromNode.ClearConnections(false)
then add the connections I want on the node with
FromNode.AddConnection(toNode, cost).
Do you do this inside a work item as described in Graph Updates during Runtime - A* Pathfinding Project?
AstarPath.active.AddWorkItem(new AstarWorkItem(() => {
// Safe to update graphs here
}));
DGaters
5
No I did not. A tiny detail I’ve missed. It works as it should now. Thank you.