# AI Controller disregards character deceleration

**URL:** <https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892>\
**Category:** AI\
**Tags:** Navigation, aicontroller, unreal-engine, question\
**Created:** [October 29, 2015, 4:58pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892 "2015-10-29T16:58:18Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_753bceeb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_753bceeb](https://forums.unrealengine.com/u/anonymous_user_753bceeb)\
**Post date:** [October 29, 2015, 4:58pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/1 "2015-10-29T16:58:18Z")

</div>

Hi there,  
For navmesh using AI pawns, I can’t seem to be able to get them to obey CharacterMovementComponent deceleration and breaking parameters. Movement obeys acceleration parameters (slowly speeds up), but comes to an abrupt stop at movement goal.

I’m using a move to location request on the owning ai controller.

I’ve tested with various combinations, with normal AIController class, DetourCrowdController class, with physical interactions on/off, with deceleration/breaking overrides on/off.

I’ve created a sample project that demonstrates the problem. It’s based off of TopDown sample.

To reproduce, open project, play in editor, and click on floor to issue move to request. Observe that AI obeys acceleration but not deceleration parameters.

Here is the download for the project;  
[https://s3.amazonaws.com/clapfootpublic/AI\_Deceleration\_Test.zip](https://s3.amazonaws.com/clapfootpublic/AI_Deceleration_Test.zip)

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ceea142b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ceea142b](https://forums.unrealengine.com/u/anonymous_user_ceea142b)\
**Post date:** [November 18, 2015, 2:31pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/2 "2015-11-18T14:31:04Z")

</div>

Clapfoot, have you found a solution yet? I’ve got the same problem on my current project.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_753bceeb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_753bceeb](https://forums.unrealengine.com/u/anonymous_user_753bceeb)\
**Post date:** [November 18, 2015, 3:02pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/3 "2015-11-18T15:02:28Z")

</div>

Hi Abeccu,  
From digging into code, I found that if you call SetStopMovementOnFinish(false) on the PathFollowingComponent, it will make the actor use acceleration to slow down, BUT, only after it has already reached it’s goal. So it will overshoot the goal.

I only partially tested this, so hopefully it will work for you.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_753bceeb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_753bceeb](https://forums.unrealengine.com/u/anonymous_user_753bceeb)\
**Post date:** [November 18, 2015, 3:04pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/4 "2015-11-18T15:04:08Z")

</div>

Ok I remember now, I think this works for the simple path following component, but not the crowd following component.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ceea142b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ceea142b](https://forums.unrealengine.com/u/anonymous_user_ceea142b)\
**Post date:** [November 18, 2015, 3:57pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/5 "2015-11-18T15:57:40Z")

</div>

Thanks for the reply! Did you by any chance find a way to force this via blueprint?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_753bceeb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_753bceeb](https://forums.unrealengine.com/u/anonymous_user_753bceeb)\
**Post date:** [November 18, 2015, 3:58pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/6 "2015-11-18T15:58:48Z")

</div>

Unfortunately, no, I don’t think you can call that function from blueprints.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f778cf8f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f778cf8f](https://forums.unrealengine.com/u/anonymous_user_f778cf8f)\
**Post date:** [July 29, 2016, 12:18am UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/7 "2016-07-29T00:18:08Z")

</div>

Having the same issue here 😕 Pretty odd that this is the default behavior…?

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [December 3, 2016, 11:03pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/8 "2016-12-03T23:03:34Z")

</div>

And this is how it is done:

```
UFUNCTION(BlueprintCallable, Category = "BPLibrary")
		static void SetStopMovementOnFinish(UPathFollowingComponent *PathFollowingComponent, bool bEnable);

void BPFunctionLibrary::SetStopMovementOnFinish(UPathFollowingComponent *PathFollowingComponent, bool bEnable)
{
	if(PathFollowingComponent)
		PathFollowingComponent->SetStopMovementOnFinish(bEnable);
}
```

---

<div class="post-metadata">

**Author:** ![thevfxguy13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thevfxguy13](https://forums.unrealengine.com/u/thevfxguy13)\
**Post date:** [December 4, 2016, 3:51am UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/9 "2016-12-04T03:51:36Z")

</div>

I was able to simulate deceleration using a bit of math and adjusting the playing max walk speed as the player approached the target. I know this isn’t a true fix but it got the job done. I can dig up a screenshot if it’d be helpful.

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [December 4, 2016, 3:04pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/10 "2016-12-04T15:04:06Z")

</div>

According to Epic, it is fixed in 4.15

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-17495)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

Nevetherless, if you can share a screenshot for the community, it will be awesome!

---

<div class="post-metadata">

**Author:** ![thevfxguy13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thevfxguy13](https://forums.unrealengine.com/u/thevfxguy13)\
**Post date:** [December 6, 2016, 3:11pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/11 "2016-12-06T15:11:41Z")

</div>

Sorry for the delayed response. I’ll post a screenshot tonight.

---

<div class="post-metadata">

**Author:** ![Joey.NexonGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Joey.NexonGames](https://forums.unrealengine.com/u/Joey.NexonGames)\
**Post date:** [September 4, 2020, 2:50am UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/12 "2020-09-04T02:50:25Z")

</div>

Set bUseAccelerationForPaths to True will resolve this problem.

---

<div class="post-metadata">

**Author:** ![Faptdivers](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Faptdivers](https://forums.unrealengine.com/u/Faptdivers)\
**Post date:** [August 17, 2022, 2:47pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/13 "2022-08-17T14:47:52Z")

</div>

In UE5.0 this seems to be broken when using the DetourCrowd AIController.  
It works perfectly well with the default AIController but not with the detour one.

---

<div class="post-metadata">

**Author:** ![elguapador](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@elguapador](https://forums.unrealengine.com/u/elguapador)\
**Post date:** [November 8, 2022, 1:05pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/14 "2022-11-08T13:05:23Z")

</div>

This is the solution that worked for me. Annoying that it’s a protected variable and can only edit in BP (as far as I can tell) but nice to have non-jittery AI movement finally. Many thanks!

---

<div class="post-metadata">

**Author:** ![SeRHlI1994](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SeRHlI1994](https://forums.unrealengine.com/u/SeRHlI1994)\
**Post date:** [April 13, 2024, 6:50pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/15 "2024-04-13T18:50:41Z")

</div>

yes, I just tried this and I can confirm that setting the CharacterMovementComponent property ‘Use Acceleration For Paths’ to true, and tweaking the braking decelration for walking/swimming etc. will make the characters decelrate closer to the end of a path… the lower the braking deceleration value, the earlier the character will start decelerating. If the value is high, the character will decelrate very quickly and stop abruptly, so be sure to play with this setting

---

<div class="post-metadata">

**Author:** ![Ciberus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ciberus/32/561261_2.png) [@Ciberus](https://forums.unrealengine.com/u/Ciberus)\
**Post date:** [March 3, 2025, 1:51pm UTC](https://forums.unrealengine.com/t/ai-controller-disregards-character-deceleration/336892/16 "2025-03-03T13:51:03Z")

</div>

Thanks a lot
