World:getShapesInArea

Available since LÖVE 12.0
This method is not supported in earlier versions.

Gets a list of Shapes inside the specified area by searching for any overlapping bounding box (Shape:getBoundingBox).

Function

Synopsis

shapes = World:getShapesInArea( topLeftX, topLeftY, bottomRightX, bottomRightY )

Arguments

number topLeftX
The x position of the top-left point.
number topLeftY
The y position of the top-left point.
number bottomRightX
The x position of the bottom-right point.
number bottomRightY
The y position of the bottom-right point.

Returns

table shapes
A sequence with all shapes in the area.

See Also

Other Languages