# UE5 Getting Character to follow mouse cursor?

**URL:** <https://forums.unrealengine.com/t/ue5-getting-character-to-follow-mouse-cursor/1359684>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [November 3, 2023, 1:44pm UTC](https://forums.unrealengine.com/t/ue5-getting-character-to-follow-mouse-cursor/1359684 "2023-11-03T13:44:28Z")\
**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:** [November 3, 2023, 1:57pm UTC](https://forums.unrealengine.com/t/ue5-getting-character-to-follow-mouse-cursor/1359684/2 "2023-11-03T13:57:13Z")

</div>

Try:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/e/f/5eff1ff073a406fe54287816d4e09ef39fd6bf25.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/9/bb9fd96f6a5bee3ecaf9726075741c6a20f74f76.png)

A bit like a twin-stick shooter.

* * *

We shoot a (red) beam from the camera towards the mouse cursor projected into the 3d world, it will eventually intersect (yellow) a virtual horizontal plane (teal) at player’s depth, we find rotation from the player to that intersection (green):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/f/bcfff39cdb48857fe54eadddd88979f65115d9c9.jpeg)

This way you do not need to rely on level topology. Hope it helps.

---

_[View the full topic](https://forums.unrealengine.com/t/ue5-getting-character-to-follow-mouse-cursor/1359684)._
