Area
self:get_dimension
SharedRetrieves the dimension of the area
Syntax
local dimension = self:get_dimension()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
int | dimension | Current dimension id |
Examples
local entity = physics.area.create()
core.engine.print("info", "Area dimension:", entity:get_dimension())