# AI Not moving

**URL:** <https://forums.unrealengine.com/t/ai-not-moving/460825>\
**Category:** AI\
**Tags:** Behavior-Tree, Navigation, move-to, unreal-engine, navmesh, question\
**Created:** [January 21, 2020, 10:20pm UTC](https://forums.unrealengine.com/t/ai-not-moving/460825 "2020-01-21T22:20:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RCV2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCV2](https://forums.unrealengine.com/u/RCV2)\
**Post date:** [January 21, 2020, 10:20pm UTC](https://forums.unrealengine.com/t/ai-not-moving/460825/1 "2020-01-21T22:20:37Z")

</div>

My AI Character is not moving anywhere, not with BT “Move To Node” nor with simple Simple Move to Location/Actor.

- Yes, there is a NavMesh Bounds volume in level. I’m building the mesh at runtime (I have changed the setting in Navigation Mesh → Runtime and I am calling the Build() function), but I also tried with a static nav mesh in a map with no geometry and it still won’t work.
- The character is being possessed by the controller that runs the behaviour tree.
- The character movement component is set up as default so it should be able to move. \
- I tried changing the cell and tile sizes and agent settings to many values in Navigation Mesh Project Settings.

 ![295659-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/9/079bce45fab5a6dcb734c63ee6fbcb57bfe41cd9.png)

 ![295660-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/d/3cdd3d8f1a69b5b3ff93ad62442e86ccc9d927b5.png)

The AI Debug shows the path that the character should take, and it changes when the target location changes (inside the BT).  
I ran out of ideas and read every other question on the matter. I don’t really need to use the nav mesh but I don’t want to have to implement my own AI movement logic just because of a bug.

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [January 21, 2020, 11:15pm UTC](https://forums.unrealengine.com/t/ai-not-moving/460825/2 "2020-01-21T23:15:48Z")

</div>

That covers everything i wouldve known to check other than collisions and whethet the pawn is constrained to a plane or any axes.

---

<div class="post-metadata">

**Author:** ![RCV2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCV2](https://forums.unrealengine.com/u/RCV2)\
**Post date:** [January 23, 2020, 1:09am UTC](https://forums.unrealengine.com/t/ai-not-moving/460825/3 "2020-01-23T01:09:15Z")

</div>

Fixed it!  
BeginPlay implementation was empty in my AI Controller C++ class. Removed the function and now it works. Apparently something important does happen at some point in the BeginPlay hierarchy but there were no errors other than an occasional ensure fail.

---

<div class="post-metadata">

**Author:** ![RCV2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCV2](https://forums.unrealengine.com/u/RCV2)\
**Post date:** [January 23, 2020, 1:10am UTC](https://forums.unrealengine.com/t/ai-not-moving/460825/4 "2020-01-23T01:10:18Z")

</div>

Yep, I guess there were not many options. But in the end it was my fault :’(

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [January 23, 2020, 5:14pm UTC](https://forums.unrealengine.com/t/ai-not-moving/460825/5 "2020-01-23T17:14:00Z")

</div>

Glad to hear it!

---

<div class="post-metadata">

**Author:** ![Bono\_Mo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bono\_Mo](https://forums.unrealengine.com/u/Bono_Mo)\
**Post date:** [September 23, 2023, 3:29pm UTC](https://forums.unrealengine.com/t/ai-not-moving/460825/6 "2023-09-23T15:29:34Z")

</div>

Had a similar problem and had to include the Super::BeginPlay() / Super::OnPossess() calls within my C++ Methods
