# AI character jitter away from map center

**URL:** <https://forums.unrealengine.com/t/ai-character-jitter-away-from-map-center/467807>\
**Category:** AI\
**Tags:** jitter, origin, unreal-engine, question\
**Created:** [July 7, 2020, 6:39pm UTC](https://forums.unrealengine.com/t/ai-character-jitter-away-from-map-center/467807 "2020-07-07T18:39:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucas\_False](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lucas\_False](https://forums.unrealengine.com/u/Lucas_False)\
**Post date:** [July 7, 2020, 6:39pm UTC](https://forums.unrealengine.com/t/ai-character-jitter-away-from-map-center/467807/1 "2020-07-07T18:39:47Z")

</div>

Hello!

I have a huge map with world composition enabled in a multiplayer game with dedicated server.

AI characters inherit from default ACharacter with default UCharacterMovementComponent, AI controller is default AAIController. Moves via:

```
// AAIController* AIOwner

AIOwner->MoveTo(MoveRequest);

```

AI characters begin to jitter when moving far away from map center. Already tried to shift world origin in a couple ways.

My tries mostly based on [this forum topic][1].

```
// Way #1 

const bool bResult = CurrentWorld->SetNewWorldOrigin(FIntVector(NewOriginLocation));

// Way #2 

CurrentWorld->RequestNewWorldOrigin(FIntVector(NewOriginLocation));

// Debug 

const FVector CurrentOrigin = FVector(CurrentWorld->OriginLocation);

```

Way #1 returned true as result, in both cases distance between CurrentOrigin and AI characters location was less than 10000 unreal units (100m). So was distance between CurrentOrigin and player.

Video away from map center, around x: -862100, y: 685600, z: -50000 (-8.62km, 6.8km, -0.5km):

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/7/6e770e7410b9636a1430c81674ba54a347c2edf1.jpeg "AI character jitter away from map center #1") ](https://www.youtube.com/watch?v=esE7Ea0iRPc)

Video near map center:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/b/3cb59288727d151419858171ee5c3d034497874a.jpeg "AI character jitter away from map center #2") ](https://www.youtube.com/watch?v=BL62fIui3SY)

There is no any difference in settings, just location.

World settings:

 ![306450-2020-07-07-20-46-52.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/4/f34c5504a5c9791218d90b2e303633d61be797b7.png)

Project settings → Network:

 ![306461-2020-07-07-20-52-06.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/6/0e6b15a9f5fa186e2d61c1c830bd7add2af288df.png)

Play settings:

![306462-2020-07-07-20-54-18.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/d/e3d3bfda5d079bc98f2355447ef1cd571466c243.png)

So my question here is how to fix that jitter?

---

<div class="post-metadata">

**Author:** ![yoLud](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yoLud](https://forums.unrealengine.com/u/yoLud)\
**Post date:** [November 29, 2022, 10:17am UTC](https://forums.unrealengine.com/t/ai-character-jitter-away-from-map-center/467807/2 "2022-11-29T10:17:05Z")

</div>

hi，Have you found a solution? I have the same problem
