# AI Navigation fails with navmesh set to Dynamic runtime generation

**URL:** <https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366>\
**Category:** AI\
**Tags:** ai-navigation, pathfinding, dynamic-navmesh, ai-controller, unreal-engine, question\
**Created:** [June 28, 2015, 10:45pm UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366 "2015-06-28T22:45:05Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3ca377f31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3ca377f31](https://forums.unrealengine.com/u/anonymous_user_3ca377f31)\
**Post date:** [June 28, 2015, 10:45pm UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/1 "2015-06-28T22:45:05Z")

</div>

I’m having trouble moving an AI character to another actor when runtime generation is set to dynamic. It works if I set it to static, but gives an Aborted error otherwise. I can see the cell updating when I start the simulation, changing from green to red and back to green. I assume the update triggers an error, and then in the visual logger the RecastNavMesh throws a warning: FPImplRecastNavMesh::InitPathFinding start point not on navmesh.

Am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![shauki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shauki](https://forums.unrealengine.com/u/shauki)\
**Post date:** [July 30, 2015, 9:25am UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/2 "2015-07-30T09:25:20Z")

</div>

I have a large equipment traveling and AI character moving on correctly only before it moves. I think the navmesh is not updating correctly. Have you found the solution for your case?

---

<div class="post-metadata">

**Author:** ![JimmothySanchez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JimmothySanchez](https://forums.unrealengine.com/u/JimmothySanchez)\
**Post date:** [July 30, 2015, 4:59pm UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/3 "2015-07-30T16:59:32Z")

</div>

I had a similar issue to this one and I fixed it. I had a collider on my pawn that had “can effect navigation” set to true, and I had it blocking navigation. My thought process was that this would prevent pawns from running into each other. The problem was that the collider meant that the pawn blocked its own starting point in the navigation. The way to fix this was to get rid of anything on the pawn that would affect the nav mesh and to instead go to the movement component and turn on RVOavoidance and set the radius for the character pretty high. Hope this helps.

---

<div class="post-metadata">

**Author:** ![shauki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shauki](https://forums.unrealengine.com/u/shauki)\
**Post date:** [July 31, 2015, 8:25am UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/4 "2015-07-31T08:25:56Z")

</div>

I took off _Dynamic Obstacle_ on the capsule of the ThirdPersonCharacter.  
In the editor the dynamic navMesh looks green but in simulation keeps red in several places and the character does not move. With static navmesh all works

 ![52221-navmeshinsimulation.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/3/24318e95f1b45fecc712cbca73d09a95d9e08160.png)

---

<div class="post-metadata">

**Author:** ![shauki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shauki](https://forums.unrealengine.com/u/shauki)\
**Post date:** [July 31, 2015, 8:29am UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/5 "2015-07-31T08:29:20Z")

</div>

I even deleted the character from the scene and the mesh remains red without doing any movements of the machine.

---

<div class="post-metadata">

**Author:** ![JimmothySanchez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JimmothySanchez](https://forums.unrealengine.com/u/JimmothySanchez)\
**Post date:** [July 31, 2015, 2:18pm UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/6 "2015-07-31T14:18:19Z")

</div>

Looks like you may have a different problem than the one that started this topic. I suspect something is up with the settings on your nav mesh. Does this only happen with run-time generation set to dynamic?

---

<div class="post-metadata">

**Author:** ![shauki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shauki](https://forums.unrealengine.com/u/shauki)\
**Post date:** [July 31, 2015, 3:50pm UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/7 "2015-07-31T15:50:54Z")

</div>

exactly, only on dynamic

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0e3d41b3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0e3d41b3](https://forums.unrealengine.com/u/anonymous_user_0e3d41b3)\
**Post date:** [September 8, 2016, 9:07am UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/8 "2016-09-08T09:07:02Z")

</div>

Bump, I’m having the same issue. My ai moves very weird with the Navmesh set to dynamic.

---

<div class="post-metadata">

**Author:** ![IseTheHuman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IseTheHuman](https://forums.unrealengine.com/u/IseTheHuman)\
**Post date:** [November 6, 2020, 1:07am UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/9 "2020-11-06T01:07:14Z")

</div>

have the same problem. seems to me like dynamic naymesh generation ignores all generation settings (ProjectSettings and RecastNavMesh) and replaces them with some default settings (e.g. always Agent Radius 35).

---

<div class="post-metadata">

**Author:** ![IseTheHuman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IseTheHuman](https://forums.unrealengine.com/u/IseTheHuman)\
**Post date:** [November 6, 2020, 9:51pm UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/10 "2020-11-06T21:51:05Z")

</div>

Just found a solution for my problem, posted by almighty mieszko: [Navmesh Character Radius - Character & Animation - Unreal Engine Forums](https://answers.unrealengine.com/questions/92807/navmesh-character-radius.html)

---

<div class="post-metadata">

**Author:** ![Levitikon217](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Levitikon217](https://forums.unrealengine.com/u/Levitikon217)\
**Post date:** [March 1, 2021, 12:39pm UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/11 "2021-03-01T12:39:53Z")

</div>

Somewhat related, hopefully this helps someone else.

> **[AI navigation blocking self?](https://forums.unrealengine.com/questions/262849/ai-navigation-blocking-self.html)**
>
> I have an pawn controlled by an AI controller with a behavior Tree. I had it working so that the pawn used the move to node to avoid obstacles. I switched the runtime generation on the navmesh to dynamic and now the pawn seems to block itself. When...

For me it was making sure nothing (static meshes) attached to the character (armor, weapons, torches, etc.) that have “Can Ever Affect Navigation” checked.

---

<div class="post-metadata">

**Author:** ![6r0m](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/6r0m/32/1194563_2.png) [@6r0m](https://forums.unrealengine.com/u/6r0m)\
**Post date:** [June 8, 2022, 1:31pm UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/12 "2022-06-08T13:31:47Z")

</div>

after researching the engine code, I found that in the PathFinding() function from recast nav mesh, there is: Query.findNearestPoly() which check if poly exists in some extents near navigation in the start point when your character trying to find a path.

for example, by default it can’t find StartPoly if navdata turned out to be significantly lower / higher than the surface on which the character stands.

fortunately, you can easily expand this extent in the ProjectSettings/NavigationMesh/Query - VerticalDeviationFromGroundCompensation

---

<div class="post-metadata">

**Author:** ![kev16j](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kev16j](https://forums.unrealengine.com/u/kev16j)\
**Post date:** [June 30, 2023, 6:36pm UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/13 "2023-06-30T18:36:45Z")

</div>

Uncheck “Can Affect Navigation Generation” in Class Defaults AND Uncheck “Can Ever Affect Navigation” in all Collision of all Components of AI.

Dynamic mode generate navigation every 0.5 sec (by default in Project Settings \> Navigation Mesh) so that’s why “Can Affect Navigation Generation” making this problem !  
(Worked for me)

Hope it will help !

PS : Maybe it could fix FindPathToLocationSync nod…

---

<div class="post-metadata">

**Author:** ![CasualSamuli](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CasualSamuli](https://forums.unrealengine.com/u/CasualSamuli)\
**Post date:** [January 15, 2025, 2:05pm UTC](https://forums.unrealengine.com/t/ai-navigation-fails-with-navmesh-set-to-dynamic-runtime-generation/323366/14 "2025-01-15T14:05:20Z")

</div>

I can confirm now 10 years later that I had to turn off “Can Ever Affect Navigation” from all meshes I had in the character in order to make my AI character move again. NavMesh does not care when set to “Static” but after setting to “Dynamic” this became a problem.
