Class: RayCaster

RayCaster


new RayCaster()

Methods


cast(ray, scene)

Finds the closest intersection point in the scene for the ray.

Parameters:
Name Type Description
ray

The ray in world space coordinates.

scene

The scene containing the geometry to test.

TODO: Should also be able to provide a set of objects instead of the scene?