intersectsObject method

bool intersectsObject(
  1. Object3D object
)

Implementation

bool intersectsObject(Object3D object) {
  final geometry = object.geometry;
  if (geometry == null) return false;

  if (geometry.boundingSphere == null) geometry.computeBoundingSphere();

  _sphere.copy(geometry.boundingSphere!);

  _sphere.applyMatrix4(object.matrixWorld);

  return intersectsSphere(_sphere);
}