# AI Pawn velocity is huge compared to player velocity

**URL:** <https://forums.unrealengine.com/t/ai-pawn-velocity-is-huge-compared-to-player-velocity/421544>\
**Category:** World Creation\
**Tags:** ai-move-to, unreal-engine, Physics, velocity, question, CPP\
**Created:** [April 1, 2018, 9:43pm UTC](https://forums.unrealengine.com/t/ai-pawn-velocity-is-huge-compared-to-player-velocity/421544 "2018-04-01T21:43:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zaha/32/947496_2.png) [@zaha](https://forums.unrealengine.com/u/zaha)\
**Post date:** [April 1, 2018, 9:43pm UTC](https://forums.unrealengine.com/t/ai-pawn-velocity-is-huge-compared-to-player-velocity/421544/1 "2018-04-01T21:43:34Z")

</div>

Hey everyone,

I noticed that projectiles of my AI controlled pawns seem to be spawned way in front of the actor. When debugging, I found out that the velocity (which I add to the spawned projectile) is insanely large for the AI pawns, whereas for the player the velocity is in the range of the max speed. I use the same base class and movement component for both actors.

The only difference is that one is controlled by a player controller and the other by an AI controller that runs a Behaviour Tree. I am out of ideas what might cause this. Does anyone have an idea why the AI’s velocity is so large?

I have attached two screenshots taken during play from both actors:

AI Pawn

![235895-2018-04-01-23-34-24-ai-pawn.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/6/3969b4d3ab9af0390d0b47d31e26de3bc5bced91.png)

Player

![235896-2018-04-01-23-35-16-player.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/5/21503b3e1be04491eff7c495ebea4533ce4a81c4.png)

---

<div class="post-metadata">

**Author:** ![ps2invader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ps2invader](https://forums.unrealengine.com/u/ps2invader)\
**Post date:** [September 12, 2019, 10:24pm UTC](https://forums.unrealengine.com/t/ai-pawn-velocity-is-huge-compared-to-player-velocity/421544/2 "2019-09-12T22:24:59Z")

</div>

Same problem here,  
You’ve figured out why?

---

<div class="post-metadata">

**Author:** ![ps2invader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ps2invader](https://forums.unrealengine.com/u/ps2invader)\
**Post date:** [September 13, 2019, 9:48am UTC](https://forums.unrealengine.com/t/ai-pawn-velocity-is-huge-compared-to-player-velocity/421544/3 "2019-09-13T09:48:03Z")

</div>

Ok i’ve solved the problem.

To avoid this issue you have to set **Use Acceleration for Paths** inside the **Nav Movement** section.  
In this way the AI will use the speed data from Component to set velocity instead set it directly.

However this will cause another possible issue. the AI will slow down when is near to the target because the logic of movement in **FloatingPawnMovement**.

To avoid this is also necessary to set the **Use Fixed Braking Distance for Paths**.

This will take the param inside **Fixed Path Braking Distance** and start to slow down the AI when he reach the distance inside the param.

If is set to 0 the AI will not slow down the movement untill he reach the target.

Here an example Pic about the correct params settings

![287212-solvedanwserhub.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/3/62302c13e3d25a9eddd23444fcbb78b936f21096.png)

I hope this will help everyone who needs this.

---

<div class="post-metadata">

**Author:** ![zaha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zaha/32/947496_2.png) [@zaha](https://forums.unrealengine.com/u/zaha)\
**Post date:** [September 13, 2019, 2:46pm UTC](https://forums.unrealengine.com/t/ai-pawn-velocity-is-huge-compared-to-player-velocity/421544/4 "2019-09-13T14:46:58Z")

</div>

Awesome, thanks for sharing!  
I’ll try it as soon as I can.

---

<div class="post-metadata">

**Author:** ![AlphaDeltaChair1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlphaDeltaChair1](https://forums.unrealengine.com/u/AlphaDeltaChair1)\
**Post date:** [May 21, 2023, 3:44pm UTC](https://forums.unrealengine.com/t/ai-pawn-velocity-is-huge-compared-to-player-velocity/421544/5 "2023-05-21T15:44:00Z")

</div>

thank you so much. I spent hours trying to fix this.
