intersectsSprite method

bool intersectsSprite(
  1. Object3D sprite
)

Implementation

bool intersectsSprite(Object3D sprite) {
  _sphere.center.set(0, 0, 0);
  _sphere.radius = 0.7071067811865476;
  _sphere.applyMatrix4(sprite.matrixWorld);

  return intersectsSphere(_sphere);
}