raycast method

void raycast(
  1. Raycaster raycaster,
  2. List<Intersection> intersects
)

Abstract (empty) method to get intersections between a casted ray and this object. Subclasses such as Mesh, Line, and Points implement this method in order to use raycasting.

Implementation

void raycast(Raycaster raycaster, List<Intersection> intersects) {
  throw("Object3D not implimented");
}