overlapSphere method
The entities whose bodies a sphere at center overlaps.
Implementation
List<Entity> overlapSphere(
Vector3 center,
double radius, {
int layerMask = 0xFFFF,
Entity? ignore,
bool includeSensors = false,
}) => overlap(
SphereShape3D(radius),
center,
Quaternion.identity(),
layerMask: layerMask,
ignore: ignore,
includeSensors: includeSensors,
);