Im

Looking at the dev wiki api , I can see that the camera has a function Called ScreenPointToRay It take 2d Cordinated "From your Screen" And Translates them into "3D Cordinates" In the game world

How does that work? What is the math behind that?

I want to know because I created A 3rd person camera script for mobile , and I have a crosshair In the middle of my screen , And I want my bullet to go to the direction that 2d Crosshair is going , simular to the mouse.