Class: Raycaster

Raycaster()

Raycaster performs raycasting against scene meshes using their local AABB.

Constructor

new Raycaster()

Source:

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>