# Move NavMesh at runtime

**URL:** <https://forums.unrealengine.com/t/move-navmesh-at-runtime/353132>\
**Category:** AI\
**Tags:** ai-navigation, UE4-8, unreal-engine, navmesh, question, Blueprint\
**Created:** [April 6, 2016, 9:11am UTC](https://forums.unrealengine.com/t/move-navmesh-at-runtime/353132 "2016-04-06T09:11:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pulkitparashar7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pulkitparashar7](https://forums.unrealengine.com/u/pulkitparashar7)\
**Post date:** [April 6, 2016, 9:11am UTC](https://forums.unrealengine.com/t/move-navmesh-at-runtime/353132/1 "2016-04-06T09:11:10Z")

</div>

I’m working on an infinite runner game and I’m looking for a way to move my NavMesh at runtime so that the enemy spawned on the way could work with a normal AI. As normal NavMesh wouldn’t work as soon the path goes out of those dimensions of NavMesh box. What I need is to move the NavMesh bound volume box with my player. I’ve seen that not many info is available on this. And based on what is available I’ve implemented the same shown below. But it is not working and I’m new to unreal too. I really need help ASAP.

Any help is appreciated. Thanks!

 ![85515-fullscreen+capture+462016+20838+pm.bmp.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/2/da232f1e2607ff1898f964b0ac7829c0cae468e1.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [April 6, 2016, 9:24am UTC](https://forums.unrealengine.com/t/move-navmesh-at-runtime/353132/2 "2016-04-06T09:24:27Z")

</div>

Isn’t the idea of an infinite runner to leave the player at 0,0,0, pretend to be running, and making the world elements move? In that case the navmesh could be static.

---

<div class="post-metadata">

**Author:** ![pulkitparashar7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pulkitparashar7](https://forums.unrealengine.com/u/pulkitparashar7)\
**Post date:** [April 6, 2016, 10:07am UTC](https://forums.unrealengine.com/t/move-navmesh-at-runtime/353132/3 "2016-04-06T10:07:06Z")

</div>

Thanks for the idea I really appreciate it I never thought of this approach. But tutorials by unreal follow a different approach and its like player actually running and world elements generated in front and destroyed from the back at distance from the player that way it goes to infinity.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [April 6, 2016, 11:21am UTC](https://forums.unrealengine.com/t/move-navmesh-at-runtime/353132/4 "2016-04-06T11:21:35Z")

</div>

I don’t remember ever getting a nav mesh moving and updating in a fast way though, so I’d consider my approach if you need nav mesh.

---

<div class="post-metadata">

**Author:** ![vbs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vbs](https://forums.unrealengine.com/u/vbs)\
**Post date:** [January 18, 2018, 3:20am UTC](https://forums.unrealengine.com/t/move-navmesh-at-runtime/353132/5 "2018-01-18T03:20:01Z")

</div>

You can move it, or create a new one at the new location and remove the old one, or recycle them in a loop. Not sure if building is asynchronous or not, Alternatively your pawn character could just collide with the surface it is running on, and you may not have to use a navmesh, Navmeshes are mostly for AI. More info here: [https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/QuickStart/2/](https://docs.unrealengine.com/latest/INT/Engine/AI/BehaviorTrees/QuickStart/2/)
