# Character Orientation Affecting Movement

**URL:** <https://forums.unrealengine.com/t/character-orientation-affecting-movement/471678>\
**Category:** Character & Animation\
**Tags:** orientation, unreal-engine, player, question\
**Created:** [September 21, 2020, 4:48am UTC](https://forums.unrealengine.com/t/character-orientation-affecting-movement/471678 "2020-09-21T04:48:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThePDub](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thepdub/32/719651_2.png) [@ThePDub](https://forums.unrealengine.com/u/ThePDub)\
**Post date:** [September 21, 2020, 4:48am UTC](https://forums.unrealengine.com/t/character-orientation-affecting-movement/471678/1 "2020-09-21T04:48:42Z")

</div>

Hello, first time on the answer hub!

I want my character to face the camera (I am using static cameras in my game) but my WASD input setup will make the controls confusing.

**Is there a way to orient my character while keeping the input the same?** My thought was to duplicate the current Blueprint and turn the character mesh opposite its capsule, but that feels counter-intuitive.

Am I overthinking this? What should I do?

 ![314417-screenshot-2020-09-20-234509.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/4/904f0f7e0cb354bf13d7e851b37cae6d6aa5d9ec.png)

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [September 21, 2020, 5:03pm UTC](https://forums.unrealengine.com/t/character-orientation-affecting-movement/471678/2 "2020-09-21T17:03:19Z")

</div>

It’s not clear what you want. Can you elaborate?

---

<div class="post-metadata">

**Author:** ![ThePDub](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thepdub/32/719651_2.png) [@ThePDub](https://forums.unrealengine.com/u/ThePDub)\
**Post date:** [September 21, 2020, 5:09pm UTC](https://forums.unrealengine.com/t/character-orientation-affecting-movement/471678/3 "2020-09-21T17:09:54Z")

</div>

Yes! Apologies if the question is not worded well.

The character is in a collider capsule with a main direction, indicated by an arrow within the Blueprint editor. When I drop in a character to a map, my input (WASD on the keyboard, W being forward, A left, D right, S backwards) is mapped to whatever direction is the “Forward” for the capsule the character mesh is in.

The problem is I want my game to have static cameras that transition between each other as the player enters new rooms. Here you can see my character has its back to the camera. If I want the character to face the camera, all of a sudden, W is actually _backwards_ towards the camera, S is _forwards away from the camera_. It is working as I set it up, but I don’t know if I should reverse the character in its capsule when I need a different orientation to have the input make sense, or be extremely careful in how I orient a scene. Neither seems preferable.

Does that make more sense?

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [September 21, 2020, 6:11pm UTC](https://forums.unrealengine.com/t/character-orientation-affecting-movement/471678/4 "2020-09-21T18:11:29Z")

</div>

Now it’s clear.

Try this. In the player character do this 2 things:

1 - Reverse the inputs W and S (you could do it in the bindings, but for now let’s not touch that):

 ![314465-0.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/7/f77f6804029d73b315e0c2466fdb70bfbf95019a.jpeg)

2 - Add this script - it gets the current active camera and rotates the player’s controller to face it. Note, that it’s only the controller, not the character itself (you can add a SetActorRotation to make the character rotate towards the camera if you want it):

 ![314466-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/9/ab99148e5c3fe5c8cf914ac9902847de3f22dc42.jpeg)

The delay is only necessary if you are setting this in the begin play (if so, then you should consider the delay as something temporary - requires a little redesign).

Now, all the movements are in the same direction (W moves away from the camera, …), regardless of the camera position.

---

<div class="post-metadata">

**Author:** ![ThePDub](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thepdub/32/719651_2.png) [@ThePDub](https://forums.unrealengine.com/u/ThePDub)\
**Post date:** [October 14, 2020, 5:32pm UTC](https://forums.unrealengine.com/t/character-orientation-affecting-movement/471678/5 "2020-10-14T17:32:13Z")

</div>

Sorry for the _very_ late reply - thanks so much!! This works.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [July 1, 2023, 2:49pm UTC](https://forums.unrealengine.com/t/character-orientation-affecting-movement/471678/6 "2023-07-01T14:49:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
