intersectObject method

List<Intersection> intersectObject(
  1. Object3D object,
  2. bool recursive, [
  3. List<Intersection>? intersects
])

Implementation

List<Intersection> intersectObject(Object3D object, bool recursive, [List<Intersection>? intersects]) {
  List<Intersection> intersections = intersects ?? [];

  intersectObject4(object, this, intersections, recursive);

  intersections.sort(ascSort);

  return intersections;
}