ScreenToWorld
Go from screen (2D) coordinates to world coordinates (3D).
Function
Sym3Vec3 ScreenToWorld(x, y, z)
Parameters
- x (number): The x coordinate in screenspace.
- y (number): The y coordinate in screenspace.
- z (number): The distance between the camera and 3d point.
Return Value
Returns a worldspace coordinate.
Remarks
This function can also just take a single Sym3Vec3 as an argument.