overlapBox method

List<Entity> overlapBox(
  1. Vector3 center,
  2. Vector3 halfExtents, {
  3. Quaternion? rotation,
  4. int layerMask = 0xFFFF,
  5. Entity? ignore,
  6. bool includeSensors = false,
})

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,
);