- Home /
Question by
DaiMangouDev · Sep 10, 2016 at 07:11 PM ·
c#camerascreen
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 ?
Comment
Best Answer
Answer by flaviusxvii · Sep 10, 2016 at 07:58 PM
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220612092541im_/https://answers.unity.com/themes/thub/images/avi.jpg)