# How to lock up and down and camera movement for Beat Em Up style?

**URL:** <https://forums.unrealengine.com/t/how-to-lock-up-and-down-and-camera-movement-for-beat-em-up-style/250650>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [September 14, 2021, 6:54am UTC](https://forums.unrealengine.com/t/how-to-lock-up-and-down-and-camera-movement-for-beat-em-up-style/250650 "2021-09-14T06:54:55Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 15, 2021, 9:40pm UTC](https://forums.unrealengine.com/t/how-to-lock-up-and-down-and-camera-movement-for-beat-em-up-style/250650/10 "2021-09-15T21:40:45Z")

</div>

Oh, this should not be used for movement. This only tells you the direction relative to where the player is facing. Normally you’d use it to calculate the angle. I thought that’s what you were asking here:

> figure out some math to check if player is looking either east or west

The West East and so on would depend how things are set up. In case of the template, it’d look like this:

Not sure if you need it, but you asked.

* * *

Dot is visualised here:

> [@How to create God of War targetting system?](https://forums.unrealengine.com/t/how-to-create-god-of-war-targetting-system/210302/2):
>
> [The Dot Product](https://en.wikipedia.org/wiki/Dot_product) of 2 directional vectors will be in range of -1 to 1. Anything that’s above 0 is in front of you, anything below 0 is behind (and every other value in between matters, too!) I grab all the actors around the player using a Sphere Overlap (as in the original suggestion) and loop through the elements of the array, checking my angles - Dot player’s forward and the direction to each target. For dot values greater than .5 I mark the target, and add that actor to the array…

Perhaps that’d clarify it a bit.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-lock-up-and-down-and-camera-movement-for-beat-em-up-style/250650)._
