# How to make 2.5D Side Scroller aim weapon at mouse cursor?

**URL:** <https://forums.unrealengine.com/t/how-to-make-2-5d-side-scroller-aim-weapon-at-mouse-cursor/488287>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 1, 2021, 7:52pm UTC](https://forums.unrealengine.com/t/how-to-make-2-5d-side-scroller-aim-weapon-at-mouse-cursor/488287 "2021-09-01T19:52:06Z")\
**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:** [September 2, 2021, 8:40am UTC](https://forums.unrealengine.com/t/how-to-make-2-5d-side-scroller-aim-weapon-at-mouse-cursor/488287/2 "2021-09-02T08:40:21Z")

</div>

How’s this:

> [@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) …

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-make-2-5d-side-scroller-aim-weapon-at-mouse-cursor/488287)._
