What is the formula for ScreenToWorldPoint ?

Hi guys , i’m curious to know hat is the formula for the function ScreenToWorldPoint

I assume that the position of the camera in relation to the object you want in screen space is taken and zeroed out

but that is about all I have figured out.

what would a possible formula be ?

It’s a bit math heavy, but here’s the Linear Algebra . Essentially the screen point get’s multiplied by a few matrices stored in the Camera class.