Hard times getting mouse position in 2.5D platformer

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?

You can use Line Plane Intersection (Origin & Normal) | Unreal Engine Documentation to get mouse intersection on a given plane:

Hope it helps.

3 Likes