Character are jittery when using DetourCrowd vs AIController

I’m trying to get some AI characters chasing after the player, but I’m not having much luck getting this to look good.
I don’t think it makes too much of a difference, but I’m using C++ not blueprints.

If I use the AIController and move them with MoveToActor() using RVO, I get quite nice smooth motion and rotations and the AI movement looks quite nice. However, sometimes the AI will get stuck if it’s pushed off the navmesh.

If I switch the AI Controller Class to DetourCrowdAIController and turn off RVO, they don’t seem to get stuck anymore and find more interesting paths between each other, however the rotation is very jittery with the characters shaking right and left.

How can I get smooth rotation with the DetourCrownAIController?

1 Like

Hello, I would also like to know, have you found any way to stop this?

No, unfortunately I never did find a solution for this. At the moment it’s on my list of things to fix latter by writing my own movement code.

Try turning off “Use Controller Rotation Yaw” (Under Pawn Settings) when using DetourCrowd AiController it is instantly snaps rotation of the pawn to whatever DetourCrowd solved.
Then go to Character Movement Component (in case you are using Character as Base class) and play around with “Rotation Settings” Set rotation rate to something resonable like 180 Yaw and tick Use Controller Desired Rotation/Orient Rotation To Movement (i think they are exactly the same values in this particular case)


try modifying this variable on movement component.