# Center of Rotation Issues with Mouse Position in UE5

**URL:** <https://forums.unrealengine.com/t/center-of-rotation-issues-with-mouse-position-in-ue5/1890971>\
**Category:** Blueprint\
**Tags:** rotation, aiming, unreal-engine, Blueprint, question\
**Created:** [June 5, 2024, 2:55pm UTC](https://forums.unrealengine.com/t/center-of-rotation-issues-with-mouse-position-in-ue5/1890971 "2024-06-05T14:55:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 5, 2024, 4:04pm UTC](https://forums.unrealengine.com/t/center-of-rotation-issues-with-mouse-position-in-ue5/1890971/2 "2024-06-05T16:04:38Z")

</div>

Your setup is missing depth (world direction). You may not be able to achieve _consistent_ results without fancier de-projection that accounts for camera frustum.

* * *

Consider this approach instead:

> [@Line Trace from a 3d point to mouse location](https://forums.unrealengine.com/t/line-trace-from-a-3d-point-to-mouse-location/237661/3):
>
> You’re tracing with a fixed distance of 500, replacing the projection’s X with a fixed value. It’s actually hard to imagine how that would look like, a strangely distorted / twisted undulating surface mayhaps? cool, for sure. I want this trace to stay on the same plane as my character, so the X value of the start point & end point should be the same. Consider the following: green_circle create a virtual plane where the character is and point it towards X (Plane Normal 1,0,0) …

Seems very close to what you need. You can skip the trace in the example, and use the `Intersection` as is.

---

_[View the full topic](https://forums.unrealengine.com/t/center-of-rotation-issues-with-mouse-position-in-ue5/1890971)._
