Multiple Graphs on a spherical world

Hello there,

I hope someone can give me a point in the right direction.

I have a small spherical world and I am currently using a cached NavMeshGraph (using a mesh) for Pathfinding on the surface which is currently working really well. I thought Pathfinding on a Sphere would be a nightmare!

The problem I face is that I need to load in dynamic objects which should be navigable too. E.g. Stairs

The simplest thing, I thought, was to use point graphs for the loaded objects as their navigation is much more straight forward. However, I cannot seem to get the two graphs to match up and have them both calculated. I get a “Destination node too far from graph” type error.

The NavMeshGraph is the only one, that I can tell, which allows Pathfinding on a sphere but as it uses a mesh, I cant add dynamic objects to that mesh and simply rescan at runtime. I looked into using links but Aron seems to discourage using links between multiple graphs on all the posts I have read.

I hope someone can help.

Kindest regards,
Peter

I think I have found a solution.

I created a Pathfinding Node link from my NavMesh Graph surface and the end point was a point graph node. This seems to have done the trick and now my objects go from one graph to the other.

Peter

1 Like