# Rotate a character

**URL:** <https://forums.unrealengine.com/t/rotate-a-character/327217>\
**Category:** Character & Animation\
**Tags:** rotating, unreal-engine, question, CPP\
**Created:** [July 31, 2015, 6:31pm UTC](https://forums.unrealengine.com/t/rotate-a-character/327217 "2015-07-31T18:31:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Opocio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Opocio](https://forums.unrealengine.com/u/Opocio)\
**Post date:** [July 31, 2015, 6:31pm UTC](https://forums.unrealengine.com/t/rotate-a-character/327217/1 "2015-07-31T18:31:40Z")

</div>

Hello, I have a Pawn and for rotate it i use this code:

in Tick:

```
FRotator NewRotation = GetActorRotation();
		NewRotation.Yaw += CameraInput.X * YawSpeed;
		SetActorRotation(NewRotation);

```

and everything works well.  
If I use the same exact code with a Character it doesn’t work anymore.  
GetActorRotation().Yaw is always 0 and i can’t rotate (i can but the character return instantly to the initial position)  
How can i correct it?  
Any help is appreciated, thanks.
