Skip to content

Function: view3dRay() ​

ts
function view3dRay(camera, area, sx, sy): object;

Experimental

The pointer ray through a container point (sx, sy): its world origin (on the near plane) and direction (toward the scene, unnormalized).

Parameters ​

ParameterType
cameraView3DCamera
areaReadonly<ViewportRect>
sxnumber
synumber

Returns ​

object

NameType
directionVector3
originVector3

Released under the MIT License.