# Pawn Transform Replication

**URL:** <https://forums.unrealengine.com/t/pawn-transform-replication/2246330>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [December 27, 2024, 9:39pm UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330 "2024-12-27T21:39:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![IBilalijaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IBilalijaz](https://forums.unrealengine.com/u/IBilalijaz)\
**Post date:** [December 27, 2024, 9:39pm UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330/1 "2024-12-27T21:39:52Z")

</div>

Hello, so I have this pawn that is has custom movement code and not using any movement component, I am trying to replicate it for a dedicated Multiplayer. My issue is, my pawn location replicates just fine but when it comes to rotation, my pawn stutters alot even though in replication I am doing Multicast and check if its not a local player controller(or LocallyControlled).

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/a/36aa40310712ac1900c5aacf2b24c8299dd248b9.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/1/9e1342603a342fa34a08e00ae8dc9128783fd350.png)

I have created ViewId for everyplayer and it works so probably not an issue with that.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/1/8c18bc9c3aee682fc59574021a8a8fdeec31f5df.png)  
I have attached my Replication properties as well. I am not using bReplicateMovement but I am using bReplicates.

P.S: I have a OnRepNotify variable which when changed, Sets the Transform Variable visible in the screen shot and is set on Tick by GetActorTransform. My Location does stutter but very rarely. And this happens when I play on LAN.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [December 28, 2024, 5:32am UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330/2 "2024-12-28T05:32:02Z")

</div>

stuttering usually means server correction so it might be fighting with something inbuilt like UseControlRotation.

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [December 28, 2024, 5:33am UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330/3 "2024-12-28T05:33:28Z")

</div>

> [@Auran131](#):
>
> stuttering usually means server correction

it can also means you’re applying the transform on the client _and_ the server.  
i’ve noticed that on a pawn, if you have it to “replicate”, just setting the transfrom will replicate to clients. so no need to do anything manually.

you might need to manually replicate other components.  
in my case, my movement was too complex and i really decided to do it on the clients, so i just don’t move them on the server. lame solution but…

---

<div class="post-metadata">

**Author:** ![IBilalijaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IBilalijaz](https://forums.unrealengine.com/u/IBilalijaz)\
**Post date:** [December 28, 2024, 9:57am UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330/4 "2024-12-28T09:57:45Z")

</div>

I have this complex movement thing made up as well. But as you can see this is a racing game so I might need to do thiis. Also if I set to replicate only it does not do anything. It is because I am not using any movement component, rather working with physics based movement.

---

<div class="post-metadata">

**Author:** ![IBilalijaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IBilalijaz](https://forums.unrealengine.com/u/IBilalijaz)\
**Post date:** [December 28, 2024, 9:58am UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330/5 "2024-12-28T09:58:37Z")

</div>

Is there a solution to it that I can try? It should be possible to replicate any pawn’s transform perfectly.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [December 28, 2024, 11:17am UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330/6 "2024-12-28T11:17:31Z")

</div>

you can disable it, just search in the pawn details panel for movement

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [December 28, 2024, 11:19am UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330/7 "2024-12-28T11:19:56Z")

</div>

ah you’re using physics? in that case its very likely your server/client are out of sync

i dont know of a good way to replicate physics, it’d have to be server only and replicated back but then you’ll have lag

---

<div class="post-metadata">

**Author:** ![IBilalijaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IBilalijaz](https://forums.unrealengine.com/u/IBilalijaz)\
**Post date:** [December 28, 2024, 2:18pm UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330/8 "2024-12-28T14:18:28Z")

</div>

To be honest that is why I am replicating Transform and not replicating the movement through physics, it works for the location but just messes up the rotation completely.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [December 28, 2024, 4:43pm UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330/9 "2024-12-28T16:43:46Z")

</div>

physics will fight with the replication though

so for example your multicasting a transform but on the server a collision happened

so now the multicast says im at position X but the server collision says im at position Y

if you do all the physics on the server it will work but then you dont need a Server/Multicast RPC you just use replicated/repnotify

but then there will be lag between the player saying i want to turn left and the server applying the force

---

<div class="post-metadata">

**Author:** ![IBilalijaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IBilalijaz](https://forums.unrealengine.com/u/IBilalijaz)\
**Post date:** [December 28, 2024, 6:08pm UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330/10 "2024-12-28T18:08:42Z")

</div>

So I am at a dead end? There must be way to solve this, 😕

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [December 29, 2024, 6:43am UTC](https://forums.unrealengine.com/t/pawn-transform-replication/2246330/11 "2024-12-29T06:43:55Z")

</div>

you’d have to predict the player input i think which isnt too bad for cars  
or fake physics rather than use real physics

but whatever the solution the physics/collision has to be done on the server in multiplayer, always!
