Character Body
self:get_dimension
SharedRetrieves the dimension of the character body
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.character.create()
core.engine.print("info", "Character body dimension:", entity:get_dimension())