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
| Parameter | Type |
|---|---|
camera | View3DCamera |
area | Readonly<ViewportRect> |
sx | number |
sy | number |
Returns
object
| Name | Type |
|---|---|
direction | Vector3 |
origin | Vector3 |