# Navmesh works in editor but moves under map when starting the game

**URL:** <https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226>\
**Category:** World Creation\
**Tags:** Navigation, unreal-engine, navmesh, question, map-error\
**Created:** [May 15, 2020, 1:26pm UTC](https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226 "2020-05-15T13:26:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_67273d7d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67273d7d](https://forums.unrealengine.com/u/anonymous_user_67273d7d)\
**Post date:** [May 15, 2020, 1:26pm UTC](https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226/1 "2020-05-15T13:26:36Z")

</div>

I’am making a game with AI that need the navmesh to move around. The navmesh looks good when the game is not started and you look at it in the editor. See picture:

 ![301983-skarmbild-12.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/7/0/170a6c11f14ff066592ddb403780fc8a1e76edc6.jpeg)

But when i start the game the navmesh moves from the correct position on the map and instead moves under the map. See picture:

 ![301984-skarmbild-13.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/6/30634991d3c8d2920c6927574dfea23190bb8a7f.jpeg)

The nav mesh worked perfectly before but after i moved some models to parts of the map this problem occurred.  
I have no idea how to fix it so help would be very nice.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 15, 2020, 3:05pm UTC](https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226/2 "2020-05-15T15:05:24Z")

</div>

Is the navmesh moving, or is it everything else? Have you checked the coordinates of the navmesh before and during the game?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_67273d7d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67273d7d](https://forums.unrealengine.com/u/anonymous_user_67273d7d)\
**Post date:** [May 15, 2020, 5:05pm UTC](https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226/3 "2020-05-15T17:05:10Z")

</div>

I checked the coordintes of the landscape and they are the same in editor and in game.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_67273d7d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67273d7d](https://forums.unrealengine.com/u/anonymous_user_67273d7d)\
**Post date:** [May 15, 2020, 5:13pm UTC](https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226/4 "2020-05-15T17:13:17Z")

</div>

I also checked the coordinates of the navmeshbounds volume. They also stay the same.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 15, 2020, 6:21pm UTC](https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226/5 "2020-05-15T18:21:39Z")

</div>

Ok, but how can that be because you can see the coordinates of one of them is changing… 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_67273d7d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67273d7d](https://forums.unrealengine.com/u/anonymous_user_67273d7d)\
**Post date:** [May 19, 2020, 9:05am UTC](https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226/6 "2020-05-19T09:05:25Z")

</div>

I somehow solved it by moving the map in the opposite of the intuitive direction. For exeample if the nav mesh was to high up over the ground i moved the ground even further down to get the navmesh to be placed correctly. I’am still not sure what caused it, maybe i accidentally moved the map before?

---

<div class="post-metadata">

**Author:** ![anon73804944](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon73804944](https://forums.unrealengine.com/u/anon73804944)\
**Post date:** [June 9, 2020, 10:27pm UTC](https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226/7 "2020-06-09T22:27:57Z")

</div>

Check that the “RecastNavMesh-Default” actor in your level is at the origin.

Try the following steps:

- Delete “RecastNavMesh-Default”
- Add a NavMeshBoundsVolume, this will add a new “RecastNavMesh-Default” at the origin
- Delete the newly added NavMeshBoundsVolume

Edit: If this doesn’t work for you, try checking out this answer [Nav Mesh moves when playing - World Creation - Epic Developer Community Forums](https://answers.unrealengine.com/questions/832131/view.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_eb5ce9fe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_eb5ce9fe](https://forums.unrealengine.com/u/anonymous_user_eb5ce9fe)\
**Post date:** [April 10, 2021, 7:02am UTC](https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226/8 "2021-04-10T07:02:03Z")

</div>

This worked for me, thank you!

---

<div class="post-metadata">

**Author:** ![Ephimax1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ephimax1](https://forums.unrealengine.com/u/Ephimax1)\
**Post date:** [March 7, 2023, 6:19pm UTC](https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226/9 "2023-03-07T18:19:45Z")

</div>

Thank you so much. The recast navmesh was way over somewhere in the map, and setting it to the level origin fixed it.

---

<div class="post-metadata">

**Author:** ![FlyingRedkite](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flyingredkite/32/691102_2.png) [@FlyingRedkite](https://forums.unrealengine.com/u/FlyingRedkite)\
**Post date:** [October 12, 2023, 10:07am UTC](https://forums.unrealengine.com/t/navmesh-works-in-editor-but-moves-under-map-when-starting-the-game/465226/10 "2023-10-12T10:07:50Z")

</div>

That fixed the problem for me too !  
Thanks 🙂
