# How to properly align control orientation to screen axis?

**URL:** <https://forums.unrealengine.com/t/how-to-properly-align-control-orientation-to-screen-axis/655615>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [September 24, 2022, 8:55pm UTC](https://forums.unrealengine.com/t/how-to-properly-align-control-orientation-to-screen-axis/655615 "2022-09-24T20:55:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![L1z4rD89](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/l1z4rd89/32/1194537_2.png) [@L1z4rD89](https://forums.unrealengine.com/u/L1z4rD89)\
**Post date:** [September 25, 2022, 6:30am UTC](https://forums.unrealengine.com/t/how-to-properly-align-control-orientation-to-screen-axis/655615/3 "2022-09-25T06:30:41Z")

</div>

Here is an example where you first calculate an OrientationPoint (the point where the projected lines of the frustum on the ground intersect) and use this for MovementDirection  
(similar to this thread [How to measure frustum at a given distance from camera? - #2 by Megadoom2oR](https://forums.unrealengine.com/t/how-to-measure-frustum-at-a-given-distance-from-camera/442581/2)) and Rotation (the rotation method @jwatte described):  
[RunTowardsCamera.zip](https://forums.unrealengine.com/uploads/short-url/4rZV1TioSJJ3lldvjWTcIgLVknc.zip) (839.4 KB)  
Maybe there is an easier way, did not need something like that before 🙂

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-properly-align-control-orientation-to-screen-axis/655615)._
