self:get_scale
Client
Retrieves the local scale of the static body
Syntax
local scale = self:get_scale()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | scale | Current local scale as {x, y, z} |
Examples
local entity = physics.static.create()
local scale = entity:get_scale()
core.engine.print("info", "Static body scale:", util.table.unpack(scale))