Camera.projectRayOrigin

Returns a 3D position in worldspace, that is the result of projecting a point on the Viewport rectangle by the camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking.

struct Camera
@nogc nothrow const
Vector3
projectRayOrigin
(
in Vector2 screen_point
)

Meta