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