# How can I move forward in VR depending on camera?

**URL:** <https://forums.unrealengine.com/t/how-can-i-move-forward-in-vr-depending-on-camera/499062>\
**Category:** XR Development\
**Tags:** unreal-engine, UE4-27, question\
**Created:** [February 17, 2022, 10:01am UTC](https://forums.unrealengine.com/t/how-can-i-move-forward-in-vr-depending-on-camera/499062 "2022-02-17T10:01:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnthonyDerossi00](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnthonyDerossi00](https://forums.unrealengine.com/u/AnthonyDerossi00)\
**Post date:** [February 17, 2022, 10:01am UTC](https://forums.unrealengine.com/t/how-can-i-move-forward-in-vr-depending-on-camera/499062/1 "2022-02-17T10:01:07Z")

</div>

Hello guys! I’ve this problem:  
I’m using the camera’s forward vector to move where the camera is facing. I actually have this blueprint

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/e/e4ec712f495b8216053beb74e98a427377f2dc31.png)  
It works fine, the problem is that if I look up, the character doesnt move, I understans that this happens because the player is trying to move along the Z axis ( the vertical one ), and it’s not possible due to gravity.  
So… I’m trying to move the character where the camera is facing, but ignoring the vertical axis and letting him move even he’s looking up or down. Thank you so much!

---

<div class="post-metadata">

**Author:** ![Rectus\_SA](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rectus\_SA](https://forums.unrealengine.com/u/Rectus_SA)\
**Post date:** [February 17, 2022, 1:33pm UTC](https://forums.unrealengine.com/t/how-can-i-move-forward-in-vr-depending-on-camera/499062/2 "2022-02-17T13:33:50Z")

</div>

To get a consistent move speed, you need to remove the Z component of the vector and the normalize the result. The **Normalize 2D** node does both of these operations in one.

---

<div class="post-metadata">

**Author:** ![Incurian](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/incurian/32/716771_2.png) [@Incurian](https://forums.unrealengine.com/u/Incurian)\
**Post date:** [February 17, 2022, 3:16pm UTC](https://forums.unrealengine.com/t/how-can-i-move-forward-in-vr-depending-on-camera/499062/3 "2022-02-17T15:16:38Z")

</div>

For a general solution that doesn’t assume Z is up, there is a blueprint node to project a vector onto a plane, which you would them want to normalize.
