# Navmesh AI not moving

**URL:** <https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580>\
**Category:** AI\
**Tags:** ai-navigation, swarm-agent, nav-agent, path-follow, unreal-engine, question\
**Created:** [January 4, 2019, 6:36am UTC](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580 "2019-01-04T06:36:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vokzole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vokzole](https://forums.unrealengine.com/u/Vokzole)\
**Post date:** [January 4, 2019, 6:36am UTC](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580/1 "2019-01-04T06:36:45Z")

</div>

Hello everyone, I am currently trying to create a Pacman project and am in the process of making the ghosts follow the player.

In this case, I have already created a navmesh bounds volume encompassing the walkable paths of the Pacman maze, both the walls and the floor are already set to block all with complex collisions as simple.

After that, I went into the project settings to set up the navmesh agent radius and height. I did this because if not the agents will get stuck around the corners but after I adjusted the radius and height to follow the ghost blueprint radius and height, the ghost AIs would not even move anymore.

I hope anyone who reads this will find the to provide me with a possible fix to the problem.

 ![264112-navmesh.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/4/964b465401a6c2210adb61aa7943e6316ae9a131.png)

Currently this is how the navmesh is looking, it is exactly how I want it visually to prevent the red balls (ghosts) from getting stuck around corners.

![264113-navmesh0.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/b/16b3a5eee80cf5eb5108524f6d77d69b257fd69a.png)

The above image shows to settings I have adjusted to fit the agent radius and height for the navmesh to adjust its spacing accordingly.

 ![264114-navmesh1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/5/e957e4459390e4e46c7a3db7322ffda9be8bc4c5.jpeg)

This blueprint editor shows the settings and adjustments of the ghost on the right.

![264115-navmesh2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/d/fadf190058b764a236b78651e8950631c20f5ac7.png)

This detailed view shows the character settings for navmesh, it is set to -1 right now because it relies its values from the project settings.

 ![264116-navmesh3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/1/a0131085afd2320adc5f7e03c97103a61dd85438.jpeg)

The image above shows the pawn sensing used to allow the ghosts to follow the player. This one is already working accordingly just in case anyone reading this is wondering.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [January 4, 2019, 7:09am UTC](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580/2 "2019-01-04T07:09:49Z")

</div>

Hi

Just by looking at it, it appears the red pawns are far to large. Have you changed their scale to something like 0.2 and run it again, just as a test?

Regards

---

<div class="post-metadata">

**Author:** ![Vokzole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vokzole](https://forums.unrealengine.com/u/Vokzole)\
**Post date:** [January 4, 2019, 8:11am UTC](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580/3 "2019-01-04T08:11:51Z")

</div>

Hi thanks for the reply,

I tried your suggestion by changing the scale of the static mesh and capsule component but none of them seems to change anything.

I thought the AI pawn only uses its relative location to compare for the navigation paths available and would not take account its own size. Which is why I changed the radius in the project settings for a tighter navmesh.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_776011b61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_776011b61](https://forums.unrealengine.com/u/anonymous_user_776011b61)\
**Post date:** [January 4, 2019, 11:26am UTC](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580/4 "2019-01-04T11:26:45Z")

</div>

What coding are you using to move them?

---

<div class="post-metadata">

**Author:** ![Vokzole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vokzole](https://forums.unrealengine.com/u/Vokzole)\
**Post date:** [January 5, 2019, 2:31am UTC](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580/5 "2019-01-05T02:31:33Z")

</div>

![264210-navmesh5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/c/eac4003e1bbebe08bba7cd8ea4d71797ebfb7ee5.png)

I used a simple move to actor which will allow the ghost to always follow the player on begin. This one works fine when I am using the default agent radius of 35 but that would lead to the ghosts getting stuck around corners.

---

<div class="post-metadata">

**Author:** ![Vokzole](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vokzole](https://forums.unrealengine.com/u/Vokzole)\
**Post date:** [January 6, 2019, 6:32am UTC](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580/6 "2019-01-06T06:32:16Z")

</div>

It seems that I need to change the radius of the “RecastNavMesh-Default” inside the project world outlier or in navigation mesh inside the project. Then, add in the supported agents with the corresponding radius as well inside the project settings in navigation system.

One problem I realized is that I actually needed to exit and re-open the project again, then move the navmesh bounds volume back and forth so that it will update the navmesh to update the agent movements properly. I can’t believe I had to spend a few days on-and-off thinking and trying all sorts of combinations just to make this work.

![264344-navmesh6.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/c/0bc885215aba4a16347c35c81264f6929696f68e.png)

1. Change the radius inside the project settings navigation mesh or inside “RecastNavMesh-Default”.

 ![264345-navmesh7.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/4/a9419863c63dbdce01de152b878e981c23de9e7a.png)

1. Add in the supported agent radius inside navigation system.

2. Save all the project.

3. Restart project.

4. Move the “navmeshboundsvolume” back and forth to refresh to new navigation updates.

5. Try to check the newly updated navmesh.

---

<div class="post-metadata">

**Author:** ![Hector40](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hector40/32/578407_2.png) [@Hector40](https://forums.unrealengine.com/u/Hector40)\
**Post date:** [August 29, 2022, 4:07am UTC](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580/7 "2022-08-29T04:07:52Z")

</div>

hello, I’m also making a pacman but it doesn’t look like you. I used the same setting but I didn’t get it. how did you do to achieve it? Thank you

 ![captura](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/2/0/820be2d3bf7766ca667b16d6c5a8fcc117a5e418.jpeg)  
 ![captura2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/7/0/b700499cfc52ec2c77053cd726e9a0d4225200ce.jpeg)

---

<div class="post-metadata">

**Author:** ![SaeedLithium](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaeedLithium](https://forums.unrealengine.com/u/SaeedLithium)\
**Post date:** [July 4, 2023, 12:46pm UTC](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580/8 "2023-07-04T12:46:09Z")

</div>

I am really grateful to you.  
I don’t know how to thank you; you did a great job and solved a very big problem for me.

---

<div class="post-metadata">

**Author:** ![DamianiMichael](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DamianiMichael](https://forums.unrealengine.com/u/DamianiMichael)\
**Post date:** [April 19, 2024, 3:11am UTC](https://forums.unrealengine.com/t/navmesh-ai-not-moving/440580/9 "2024-04-19T03:11:10Z")

</div>

Man, you are the best, I had this issue and didn’t find anything for 3 weeks, thank you so much for find the solution and share with us!
