b2w_queryAABB function

  1. @Native<Int32 Function(Int64, Float, Float, Float, Float, Uint64, Uint64, Pointer<Int64>, Int32)>(ffi.Int64, ffi.Float, ffi.Float, ffi.Float, ffi.Float, ffi.Uint64, ffi.Uint64, ffi.Pointer<ffi.Int64>, ffi.Int32)>()
int b2w_queryAABB(
  1. int worldHandle,
  2. double minX,
  3. double minY,
  4. double maxX,
  5. double maxY,
  6. int categoryBits,
  7. int maskBits,
  8. Pointer<Int64> outBodies,
  9. int maxBodies,
)

Report up to maxBodies bodies, each once, with a shape whose bounding box (grown a little, as Box2D keeps it) overlaps the box: more than what truly overlaps, so test the shapes yourself when it matters. Returns how many it wrote to outBodies.

Implementation

@ffi.Native<
  ffi.Int32 Function(
    ffi.Int64,
    ffi.Float,
    ffi.Float,
    ffi.Float,
    ffi.Float,
    ffi.Uint64,
    ffi.Uint64,
    ffi.Pointer<ffi.Int64>,
    ffi.Int32,
  )
>()
external int b2w_queryAABB(
  int worldHandle,
  double minX,
  double minY,
  double maxX,
  double maxY,
  int categoryBits,
  int maskBits,
  ffi.Pointer<ffi.Int64> outBodies,
  int maxBodies,
);