overlapBox method
The entities whose bodies a box of halfExtents at center overlaps.
Implementation
List<Entity> overlapBox(
Vector3 center,
Vector3 halfExtents, {
Quaternion? rotation,
int layerMask = 0xFFFF,
Entity? ignore,
bool includeSensors = false,
}) => overlap(
BoxShape3D(halfExtents.x, halfExtents.y, halfExtents.z),
center,
rotation ?? Quaternion.identity(),
layerMask: layerMask,
ignore: ignore,
includeSensors: includeSensors,
);