# Nav Mesh Jump Link Automatic

**URL:** <https://forums.unrealengine.com/t/nav-mesh-jump-link-automatic/366869>\
**Category:** AI\
**Tags:** navlinkproxy, ai-navigation, unreal-engine, navmesh, question\
**Created:** [August 11, 2016, 6:43pm UTC](https://forums.unrealengine.com/t/nav-mesh-jump-link-automatic/366869 "2016-08-11T18:43:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcAndreG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MarcAndreG](https://forums.unrealengine.com/u/MarcAndreG)\
**Post date:** [August 11, 2016, 6:43pm UTC](https://forums.unrealengine.com/t/nav-mesh-jump-link-automatic/366869/1 "2016-08-11T18:43:23Z")

</div>

Hi,

I’m trying to create an automatic way to create nav link.

My current code sits at the very end of void FRecastTileGenerator::GatherGeometry, gets all the polys, then get all the vertices, and then do some simple checks to validate if they are a valid pair.

It kind of work.

If I just re-trigger the nav mesh generation, everything is perfect, links are created and in the proper place.  
But if I move an object, it seems that I use the old nav mesh to generate the links, so if I do a very small move, it looks like it works but everything has a “small” offset. And if I make a big move, no link are created since there was no vertices there before.

When I noticed that I tried creating the link inside FRecastTileGenerator::GenerateNavigationData but with no success.

Is there a better place / better way to do what I need to do where I would have the full data of the full and newly generated nav mesh ?

Thanks

![102497-navlink.gif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/3/873daaf6a9b4c9292f678dc6e43230716fae62c5.gif)

---

<div class="post-metadata">

**Author:** ![ryanbai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ryanbai](https://forums.unrealengine.com/u/ryanbai)\
**Post date:** [June 15, 2018, 10:12am UTC](https://forums.unrealengine.com/t/nav-mesh-jump-link-automatic/366869/2 "2018-06-15T10:12:45Z")

</div>

I’m interested! would you mind share some details?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d73584db](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d73584db](https://forums.unrealengine.com/u/anonymous_user_d73584db)\
**Post date:** [September 16, 2019, 8:57pm UTC](https://forums.unrealengine.com/t/nav-mesh-jump-link-automatic/366869/3 "2019-09-16T20:57:20Z")

</div>

Not quite the same thing, but I made my own version of this and wanted to share ( after visiting this and many other threads, searching how to do this ).

I ended up with a manual button that needs to be pressed in the editor, which kind of sucks ( will continue to hunt for how to best hook this in for auto-generation ), but it generates the nav mesh links, and my world content author is very excited to not have to do them manually 🙂 (we have fairly large worlds, which can have ~1000-2000 links generated in it )

![alt text](https://files.slack.com/files-pri/T14UMR3RS-FNG1S2JQP/navmeshlinks.gif)
