Black Ops III

Project2Dto3D

returns a world coordinate that projects to the given 2d coordinate ((-1,1),(-1,1))

Example:

v=Project2DTo3D( 0, -1, -1, 5)

Parameters

ParameterSummary
*clientnumclientnumber - needed for viewport selection.
*xscreen space x coord (-1,1)
*yscreen space y coord (-1,1)
*depthdepth to assume near clip is at (at this depth the screen will be edge to edge)

* = mandatory