Area

self:get_dimension

Shared

Retrieves the dimension of the area

Syntax

local dimension = self:get_dimension()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intdimensionCurrent dimension id

Examples

Get the dimension of an area
local entity = physics.area.create()

core.engine.print("info", "Area dimension:", entity:get_dimension())

On this page