# Hard times getting mouse position in 2.5D platformer

**URL:** <https://forums.unrealengine.com/t/hard-times-getting-mouse-position-in-2-5d-platformer/1592560>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [January 6, 2024, 8:36am UTC](https://forums.unrealengine.com/t/hard-times-getting-mouse-position-in-2-5d-platformer/1592560 "2024-01-06T08:36:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saw9yer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Saw9yer](https://forums.unrealengine.com/u/Saw9yer)\
**Post date:** [January 6, 2024, 8:36am UTC](https://forums.unrealengine.com/t/hard-times-getting-mouse-position-in-2-5d-platformer/1592560/1 "2024-01-06T08:36:51Z")

</div>

Hello everyone,

I have hard times to get the mouse position in my 2.5D platformer.  
I tried multiples ways :

- Line trace by channel
- Line plane intersection

I assume my difficultiles comes from the fact

- My player can only move on X and Z
- My camera has an target arm length of 1200
- My camera has an absolute rotation of 0; -10; 90 (i think this is my main problem)

Can you help me?

---

<div class="post-metadata">

**Author:** ![pezzott1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pezzott1/32/1215068_2.png) [@pezzott1](https://forums.unrealengine.com/u/pezzott1)\
**Post date:** [January 6, 2024, 2:06pm UTC](https://forums.unrealengine.com/t/hard-times-getting-mouse-position-in-2-5d-platformer/1592560/2 "2024-01-06T14:06:09Z")

</div>

You can use [Line Plane Intersection (Origin & Normal) | Unreal Engine Documentation](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Math/Intersection/LinePlaneIntersection_Origin_Nor-/) to get mouse intersection on a given plane:

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/0/9f0fad837dc99e5b19ce46b8c3b62f8fdc4016c1.jpeg)

Hope it helps.
