Navmesh on a spherical planet

Hey guys,

I know I’m a little late to the party, but I had already been working on a port for the Automatic link generator targeted at A* PP. But also wanted to add some additional features like placing one directional links for locations where the Agents could jump down, but not up.

It’s not completely bug free, so feel free to contact me if you need help.
You can find the code here: https://gist.github.com/WolfVanH/e2ecbb34d6f2648005e68bec075022ef
Currently works with NodeLink2, though it’s easy to change that in the code.
This code definitely can use some clean up. I’ll update the gist if I get around doing so.

You just need to make 2 prefabs NavmeshLink prefabs, one being with one way enabled.
Place the script on any object in the scene. It should generate the Navmesh links when the graph is being scanned.

The original script was made by eDmitriy with improvements made by @Christougher.

-Wolf

2 Likes