# How can I improve my Crowd Detour behavior? Characters constantly correct their path (looks twitchy and weird) and often get stuck

**URL:** <https://forums.unrealengine.com/t/how-can-i-improve-my-crowd-detour-behavior-characters-constantly-correct-their-path-looks-twitchy-and-weird-and-often-get-stuck/273131>\
**Category:** AI\
**Tags:** unreal-engine, UE5-0, UE4-27, question\
**Created:** [January 17, 2022, 8:46pm UTC](https://forums.unrealengine.com/t/how-can-i-improve-my-crowd-detour-behavior-characters-constantly-correct-their-path-looks-twitchy-and-weird-and-often-get-stuck/273131 "2022-01-17T20:46:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chumble](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chumble](https://forums.unrealengine.com/u/Chumble)\
**Post date:** [January 17, 2022, 8:46pm UTC](https://forums.unrealengine.com/t/how-can-i-improve-my-crowd-detour-behavior-characters-constantly-correct-their-path-looks-twitchy-and-weird-and-often-get-stuck/273131/1 "2022-01-17T20:46:31Z")

</div>

I am using the base implementation of the crowd following / avoidance / detour functionality. I tried RVO but the weird rotation while moving makes it super unappealing.

This is what my behavior currently looks like. Often the pathing will change multiple times which makes the movement super unclean. And, worse than that, it will often get stuck on other players.

I don’t necessarily care if they take the fastest path and I don’t think I’ll ever have more than 10 units at a time moving with this. I just need something that is more clean and reliable. Is there anything I can tweak to improve how this handles?

[https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/e/ce07a48d5577f1ca7c20a7ca9f76fdc041cdd751.mov](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/e/ce07a48d5577f1ca7c20a7ca9f76fdc041cdd751.mov)

---

<div class="post-metadata">

**Author:** ![Natalo77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Natalo77](https://forums.unrealengine.com/u/Natalo77)\
**Post date:** [January 18, 2022, 2:23pm UTC](https://forums.unrealengine.com/t/how-can-i-improve-my-crowd-detour-behavior-characters-constantly-correct-their-path-looks-twitchy-and-weird-and-often-get-stuck/273131/2 "2022-01-18T14:23:33Z")

</div>

I’m not an AI person but from a pure logic point of view it seems you just need to decrease the sensitivity of your algorithm, or have the agent only accept new paths that are at least X heuristic amount better than the previous.

---

<div class="post-metadata">

**Author:** ![Chumble](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chumble](https://forums.unrealengine.com/u/Chumble)\
**Post date:** [January 18, 2022, 2:39pm UTC](https://forums.unrealengine.com/t/how-can-i-improve-my-crowd-detour-behavior-characters-constantly-correct-their-path-looks-twitchy-and-weird-and-often-get-stuck/273131/3 "2022-01-18T14:39:48Z")

</div>

The crowd detour behavior configuration is incredibly undocumented. What you’re suggesting sounds good but I have no idea how to achieve that using the built-in controls.

---

<div class="post-metadata">

**Author:** ![Natalo77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Natalo77](https://forums.unrealengine.com/u/Natalo77)\
**Post date:** [January 18, 2022, 2:41pm UTC](https://forums.unrealengine.com/t/how-can-i-improve-my-crowd-detour-behavior-characters-constantly-correct-their-path-looks-twitchy-and-weird-and-often-get-stuck/273131/4 "2022-01-18T14:41:25Z")

</div>

Unfortunately a lot of Unreal is that way - You must now enter the ■■■■■ around and find out” stage of interacting with the engine code. Do some digging and see what you can find.

---

<div class="post-metadata">

**Author:** ![Maralath](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maralath](https://forums.unrealengine.com/u/Maralath)\
**Post date:** [September 12, 2023, 11:14pm UTC](https://forums.unrealengine.com/t/how-can-i-improve-my-crowd-detour-behavior-characters-constantly-correct-their-path-looks-twitchy-and-weird-and-often-get-stuck/273131/5 "2023-09-12T23:14:25Z")

</div>

Hey mate. Did you ever find out more info on this subject? I’m basically at the same spot you were a year ago with this.
