# Client owned character rotates slower than (listen) server owned character

**URL:** <https://forums.unrealengine.com/t/client-owned-character-rotates-slower-than-listen-server-owned-character/427427>\
**Category:** Multiplayer & Networking\
**Tags:** rotation, unreal-engine, Multiplayer, question\
**Created:** [June 15, 2018, 5:20am UTC](https://forums.unrealengine.com/t/client-owned-character-rotates-slower-than-listen-server-owned-character/427427 "2018-06-15T05:20:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7927442](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7927442](https://forums.unrealengine.com/u/anonymous_user_e7927442)\
**Post date:** [June 15, 2018, 5:20am UTC](https://forums.unrealengine.com/t/client-owned-character-rotates-slower-than-listen-server-owned-character/427427/1 "2018-06-15T05:20:54Z")

</div>

Hello everyone!  
I have an issue with rotating character in multiplayer. The character owned by listen server rotates just as expected (on both server and clients) but for some reason the rotation of character owned by client is way too slow.

You can check video of the issue [here](https://www.youtube.com/watch?v=YwC_0eYh3_Q)

The function that I am using to rotate the character:

```
bool APlayerCharacter::DeltaRotatePlayerToDesiredYaw(float DesiredYaw, float DeltaTime, float RotationRate)
{
	float CurrentYaw = GetActorRotation().Yaw;

	bool Result = FMath::IsNearlyEqual(CurrentYaw, DesiredYaw, 0.1f);
	if (Result)
	{
		SetCharacterRotation(FRotator(0.f, DesiredYaw, 0.f));
		return true;
	}
	else
	{
		float YawDiff = FMath::FindDeltaAngleDegrees(CurrentYaw, DesiredYaw);
		float Multiplier = YawDiff / FMath::Abs(YawDiff);
		float RotateBy = Multiplier * RotationRate * DeltaTime;

		if (FMath::Abs(YawDiff) <= FMath::Abs(RotateBy) + 0.5f)
		{
			SetCharacterRotation(FRotator(0.f, DesiredYaw, 0.f));
			return true;
		}
		else
		{
			SetCharacterRotation(FRotator(0.f, CurrentYaw + RotateBy, 0.f));
			return false;
		}
		return false;
	}
}

```

where `SetCharacterRotation` is:

```
void ABaseCharacter::SetCharacterRotation(FRotator NewRotation)
{
	SetActorRotation(NewRotation);

	if (Role < ROLE_Authority)
	{
		Server_SetCharacterRotation(NewRotation);
	}
}

```

and `Server_SetCharacterRotation` is a server RPC that calls `SetCharacterRotation` again.

Any help in fixing this issue would be highly appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![siditious](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@siditious](https://forums.unrealengine.com/u/siditious)\
**Post date:** [June 15, 2018, 1:30pm UTC](https://forums.unrealengine.com/t/client-owned-character-rotates-slower-than-listen-server-owned-character/427427/2 "2018-06-15T13:30:22Z")

</div>

Just from a quick glance it doesn’t seem like your SetCharacterRotation inside the nested if conditional takes DeltaTime into account. The SetCharacterRotation in the nested else condition does and I would assume any rotation operations should.

---

<div class="post-metadata">

**Author:** ![siditious](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@siditious](https://forums.unrealengine.com/u/siditious)\
**Post date:** [June 15, 2018, 1:30pm UTC](https://forums.unrealengine.com/t/client-owned-character-rotates-slower-than-listen-server-owned-character/427427/3 "2018-06-15T13:30:33Z")

</div>

Just from a quick glance it doesn’t seem like your SetCharacterRotation inside the nested if conditional takes DeltaTime into account. The SetCharacterRotation in the nested else condition does and I would assume any rotation operations should.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7927442](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7927442](https://forums.unrealengine.com/u/anonymous_user_e7927442)\
**Post date:** [June 15, 2018, 3:36pm UTC](https://forums.unrealengine.com/t/client-owned-character-rotates-slower-than-listen-server-owned-character/427427/4 "2018-06-15T15:36:57Z")

</div>

I misunderstood your response and commented wrong earlier.  
The `SetCharacterRotation()` inside if conditional doesn’t need to take DeltaTime into account.  
The if conditional tests if the desired rotation and current rotation are almost nearly same. In that case, DeltaTime becomes irrelevant.  
The conditional tests works on server owned character (for bother server and client), or in single player. No issue there. Something is messing the rotation of client owned characters and I am not sure what

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7927442](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7927442](https://forums.unrealengine.com/u/anonymous_user_e7927442)\
**Post date:** [June 17, 2018, 2:07pm UTC](https://forums.unrealengine.com/t/client-owned-character-rotates-slower-than-listen-server-owned-character/427427/5 "2018-06-17T14:07:23Z")

</div>

Okay, so the reason this happens is because server resets the client’s rotation every 2 out of 3 frames for some reason ([explanation here](https://answers.unrealengine.com/questions/597901/pawn-rotation-too-slow-in-multiplayer.html)).

The solution for this is to call `GetCharacterMovement()->FlushServerMoves();` before calling `SetActorRotation()`.

Not sure if flushing server moves will cause other movement related issues but for now this seems to have solved the problem.

---

<div class="post-metadata">

**Author:** ![Ashp1621](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ashp1621/32/1195026_2.png) [@Ashp1621](https://forums.unrealengine.com/u/Ashp1621)\
**Post date:** [September 6, 2026, 4:36am UTC](https://forums.unrealengine.com/t/client-owned-character-rotates-slower-than-listen-server-owned-character/427427/6 "2026-09-06T04:36:00Z")

</div>

This solution is really not good for bandwidth
