lua.box3d.world.overlap
overlaps = world:overlap(shape)
if shape.points is set then this is a polygon shape overlap, otherwise this is an aabb overlap.
Get all shapes overlapping aabb or shape , I believe this might return
some shapes that do not actually overlap the given box so should
probably double check.
shape.points
Tightly packed array of points for the shape. Maximum number of points is B3_MAX_POLYGON_VERTICES (8) To cast a circle shape, just use a radius and a single point at the origin.
shape.radius
Radius of the shape to cast, does not work with aabb.
shape.lowerBound
shape.upperBound
Lower and upper aabb vectors ( will be added to origin ) this is
ignored if shape.points is set.
shape.origin
Origin vector of shape
shape.filter_categoryBits
shape.filter_maskBits
Filter masks
overlaps.shapeIds
An array of shapeIds
overlaps.shapes
An array of shapes
overlaps.leafVisits
overlaps.nodeVisits
Extra debug information