screenPointToRay
screenPointToRay(
x,y,cam,pose):Ray3
Defined in: src/modules/camera-3d/project.ts:76
The world ray through screen pixel (x, y) — for picking and aiming. A
perspective ray starts at the camera and fans out through the pixel; an
orthographic ray starts on the near plane under the pixel and runs along the
view axis, so rays through different pixels are parallel.
Parameters
Section titled “Parameters”number
number