self:get_overlapping_areas

Client

Retrieves all other areas currently overlapping this area


Syntax

local areas = self:get_overlapping_areas()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
tableareasArray of overlapping area instances

Examples

Get overlapping areas on an area
local entity = physics.area.create()

for i, other in ipairs(entity:get_overlapping_areas()) do
    core.engine.print("info", "Area overlapping areas:", other)
end

On this page