I am making a 2D game, rendered as 3D.
When clicking on my game, I want it to convert those screen space pixel coordinates into worldspace coordinates, knowing the Z axis point (0) that the point should hit.
How can I do this with a function?
I am using XNA with C#.