Hey guys,
I’ve got a 2D scene with a camera with perspective projection. I’m translating the mouse position into the scene to hover over some objects. My problem is that whenever I change the mouse positions z axis which is neccessary to not get the camera position, the ray has some offset to its real position, depending on the screen resolution, which is obviously caused by the perspective camera. How can I fix this?
Thanks in advance