# How can I rotate a pawn?

**URL:** <https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388>\
**Category:** World Creation\
**Tags:** rotation, unreal-engine, Collision, pawn, Blueprint, question\
**Created:** [March 20, 2018, 7:36pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388 "2018-03-20T19:36:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![David.Borrego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Borrego](https://forums.unrealengine.com/u/David.Borrego)\
**Post date:** [March 20, 2018, 7:36pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/1 "2018-03-20T19:36:56Z")

</div>

I have a pawn as main character and I want it to rotate according to the asdw keys. How is the best way to so this??  
i Try using set actor rotation, but when I collision with something, my pawn stop moving.

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 20, 2018, 7:46pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/2 "2018-03-20T19:46:17Z")

</div>

“Set Actor Rotation” is what you would use if you want something to “spin” indefinitely OR if you would like to “instantly” rotate one actor/character/pawn etc to face another actor/pawn/character. What you want is “movement control” correct? You don’t want to “rotate” per se as much as you want to “turn” your main character to face a direction of your choosing? Assuming this is the case what you want is to go into project settings, input, axis mapping, and “map” a key to rotate the player around the Z axis. Add axis mapping by clicking the little “+” next to the Axis mapping settings. Then just pick whatever key you want, say “D” and set it to 1.0, then add another axis map and set “A” being the opposite of the D key by convention and set it to -1.0. Then go to player controller, or player character wherever you like and right click in the event graph, search for axis mapping (Whatever Name You Chose) and use that to add input “yaw”. And you’re done. Should look like this…

 ![234443-rotate-character.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/0/e/f0e5138d45a695045f4b70fe1d399d939b62c9e9.jpeg)

---

<div class="post-metadata">

**Author:** ![David.Borrego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Borrego](https://forums.unrealengine.com/u/David.Borrego)\
**Post date:** [March 20, 2018, 8:03pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/3 "2018-03-20T20:03:54Z")

</div>

Yeah, I want movement control. I do what you say, but what moves is the camera and not the mesh. Has something to do that is a pawn instead of a character?

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 20, 2018, 8:17pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/4 "2018-03-20T20:17:04Z")

</div>

So you do want to just spin an object/character around? Haha Here, this will do that then.

 ![234447-rotate-player.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/9/5d9d96fe29a7256e9eb09ae362305faa6c23d957.jpeg)

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 20, 2018, 8:17pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/5 "2018-03-20T20:17:45Z")

</div>

Replace “Cube” with [Your Desired Mesh]

---

<div class="post-metadata">

**Author:** ![David.Borrego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Borrego](https://forums.unrealengine.com/u/David.Borrego)\
**Post date:** [March 20, 2018, 8:20pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/6 "2018-03-20T20:20:37Z")

</div>

Nono, I explain myself better: I want to have a pawn as if it were a character, with the rotation control that the character has, but in a pawn.

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 20, 2018, 8:38pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/7 "2018-03-20T20:38:04Z")

</div>

So, your question is kind of confusing now. The difference between a “character” and a “pawn” is basically how much more “functionality” they provide you with out of the box. So a pawn can do everything a character can but you will have to “code” more yourself which gives you more flexibility in what you can do. I don’t know what “character” in particular you want. Because the first person character moves differently than the 3rd person. The first thing i told you about gives 1st person perspective, the second one I showed you is more 3rd person controls where your player can rotate independently of the camera view. So again not quite sure what you are going for here.

---

<div class="post-metadata">

**Author:** ![David.Borrego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Borrego](https://forums.unrealengine.com/u/David.Borrego)\
**Post date:** [March 20, 2018, 8:44pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/8 "2018-03-20T20:44:00Z")

</div>

Sorry, I didn’t mentioned that it is a 3rd person. But the second option you told to me it’s not work like a 3rd person of a character blueprint. It rotate but not like a “rotation control” perfect

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 20, 2018, 8:53pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/9 "2018-03-20T20:53:38Z")

</div>

Got you, I am messing around with it right now I see the issue. Haven’t worked much in 3rd person though. Might need a camera boom and use that to rotate around the pawn as a focal point. Have you tried looking at the 3rd person template and seeing how Unreal handles the controls?

---

<div class="post-metadata">

**Author:** ![David.Borrego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Borrego](https://forums.unrealengine.com/u/David.Borrego)\
**Post date:** [March 20, 2018, 8:58pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/10 "2018-03-20T20:58:28Z")

</div>

Yeah, I see the third person template of Unreal, but i can not see where implemented the control rotation. Thanks for interesting in it. If you find the solution I will be very grateful

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 21, 2018, 2:07am UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/11 "2018-03-21T02:07:47Z")

</div>

Figured it out, you need a “spring arm” and to set a couple things in the details panel I have provided screen shots. Now it rotates “around” the 3rd person character as you like. Also this is in a “pawn” class BP, no issues or reason it needs to be in a “character” class. Hope this helps.

 ![234493-3rd-person-camera-set-up-part-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/8/58811cd64e95d9cf065d0718ad7073f8fa13fd35.jpeg)

 ![234494-3rd-person-camera-set-up-part-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/5/a550078a35ce1e87f6af5b849a76216e7799a454.jpeg)

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 21, 2018, 2:21am UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/12 "2018-03-21T02:21:26Z")

</div>

I forgot to show you the “player character (self)” settings, so I went back and took a screen shot but I had already switched the class back to being the regular character BP, so that is why the components panel in the final image is different from the first two, but it works either way with these settings.

---

<div class="post-metadata">

**Author:** ![David.Borrego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Borrego](https://forums.unrealengine.com/u/David.Borrego)\
**Post date:** [March 21, 2018, 7:54am UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/13 "2018-03-21T07:54:36Z")

</div>

You didn’t understand me. You explain me how to rotate the camera, but i want to rotate the mesh in a pawn. The camera works perfectly, but the mesh don’t rotate when I move.

---

<div class="post-metadata">

**Author:** ![David.Borrego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Borrego](https://forums.unrealengine.com/u/David.Borrego)\
**Post date:** [March 21, 2018, 9:08am UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/14 "2018-03-21T09:08:14Z")

</div>

I find some information and I want “Orient rotation to movement” in my pawn. In character Blueprint this a check in the character movement, but in a pawn this check doesn’t exist and my pawn mesh don’t rotate.

---

<div class="post-metadata">

**Author:** ![David.Borrego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Borrego](https://forums.unrealengine.com/u/David.Borrego)\
**Post date:** [March 24, 2018, 10:16am UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/15 "2018-03-24T10:16:55Z")

</div>

Any other solution??

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 24, 2018, 1:37pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/16 "2018-03-24T13:37:34Z")

</div>

If you want more help post a video or a link to the “rotation” you’re trying to achieve because I don’t even understand what you’re trying to do anymore. I’ve rotated everything you could possibly rotate in a player character and it’s not what you want so I stopped trying.

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 24, 2018, 1:40pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/17 "2018-03-24T13:40:12Z")

</div>

Someone else tried the same thing a couple years back, they ended up just using the character BP. Any particular reason you don’t want to use the character BP?

> **[How do I "orient rotation to movement" for a pawn?](https://forums.unrealengine.com/questions/372552/how-do-i-orient-rotation-to-movement-for-a-pawn.html)**
>
> This is my first time building a game and I need some help. What should I do to set the rotation to movement direction ?

---

<div class="post-metadata">

**Author:** ![David.Borrego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Borrego](https://forums.unrealengine.com/u/David.Borrego)\
**Post date:** [March 24, 2018, 2:00pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/18 "2018-03-24T14:00:50Z")

</div>

I want that to 3rd person pawn works like 3rd Person Character, and what I want is to orient the mesh according to his direction but without using “Set rotation”. I do not use Character because of the collision. The Character collision is a vertical capsule but my character is a dog and the vertical capsule it’s not appropiate.

Thanks for your patience

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 24, 2018, 2:36pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/19 "2018-03-24T14:36:21Z")

</div>

Is this what you want it to look like?

[![]( " - YouTube") ](https://www.youtube.com/watch?v=wHcyRrjHSJs)

---

<div class="post-metadata">

**Author:** ![David.Borrego](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Borrego](https://forums.unrealengine.com/u/David.Borrego)\
**Post date:** [March 24, 2018, 2:39pm UTC](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388/20 "2018-03-24T14:39:01Z")

</div>

If this is a pawn, yes. How did you do it?

[Next page](https://forums.unrealengine.com/t/how-can-i-rotate-a-pawn/420388.md?page=2)
