intersectsSphere method

bool intersectsSphere(
  1. Sphere sphere
)

Implementation

bool intersectsSphere(Sphere sphere) {
  var radiusSum = radius + sphere.radius;

  return sphere.center.distanceToSquared(center) <= (radiusSum * radiusSum);
}