Methods
raycast(scene, camera, mouseNdc, optionsopt) → {Array.<Intersection>}
Performs a raycast against the given scene and returns intersections.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
scene |
Scene | Scene to query. | |
camera |
Camera | Camera used to build the ray. | |
mouseNdc |
Object | Mouse coordinates in NDC space [-1..1]. | |
options |
RaycastOptions |
<optional> |
Optional raycast settings. |
- Source:
Returns:
- Intersection list.
- Type
- Array.<Intersection>