You may need to project to worldspace or deproject to screen space to make the coordinate systems match up.
There are blueprint nodes for both.
also any vector whether 2d or 3d can be broken into its components and you can wire each of them individually to different things. Just right click on the output pin of the vector reference and there should be a break option.
How do you do a line trace in a 2d game if it's needing x and y, and you could only provide x and z?
I am trying to make a 2d shooter and I need to make a linetrace from the actor to the mouse cursor and beyond. I think I need to grab the angle of the linetrace but that’s beside the point.
I’m having trouble with this because the vertical axis is Z, not Y, and the 2D Vector is X,Y.
Can someone please help me with this?