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> _intersects = intersects ?? [];

  intersectObject4(object, this, _intersects, recursive);

  _intersects.sort(ascSort);

  return _intersects;
}