I'm trying to implement object movement in OpenGL towards a mouse click event but the problem is that the coordinates that are returned are not in world space but rather within the window size. I know that it is called mouse picking but all the solutions that I've found online refer to 3D mouse picking when my object is in the 3D space but I don't care about the Z coordinate, I only care about the X and Y coordinates.
I tried implementing many mouse picking algorithms but all of them refer to all of the coordinates when I only care, also I think that mouse picking refers to dragging objects but I want movement towards my mouse coordinates instead