Static Body

self:get_dimension

Shared

Retrieves the dimension of the static body

Syntax

local dimension = self:get_dimension()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intdimensionCurrent dimension id

Examples

Get the dimension of a static body
local entity = physics.static.create()

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

On this page