Download

Get vector direction from screen x y ?

The ScreenPos event is a Right Mouse Button event coming from a pawn I’m using as a camera, to enable / disable the HUD Draw. On draw gets the distance away from the clicked XY location. The part where It’s making the vector is what I’m having trouble with, as you can see will only move along X & Y. I need to make it a direction, bit stumped trying to figure what I need to use ?

The “Move Camera” calls back to the pawn using Add Movement Input.

Have you tried with “Convert Mouse Location To World Space”?
23cbd6dce71493a3a66cea9b0ac7c101d0aa5e5e.png

From my point of view not entirely sure what to do with it. What did you have in mind ?

Ended up just adding rotation to the vector from the pawn’s rotation. No idea why it was so hard to figure.