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
| Type | Name | Description |
|---|---|---|
table | areas | Array of overlapping area instances |
Examples
local entity = physics.area.create()
for i, other in ipairs(entity:get_overlapping_areas()) do
core.engine.print("info", "Area overlapping areas:", other)
end