self:scale_global

Client

Scales the static body in the global coordinate space


Syntax

local status = self:scale_global(
    scale
)

Parameters

TypeNameDescription
vector3scaleScale factor to apply as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Scale a static body globally
local entity = physics.static.create()

entity:scale_global({2, 2, 2})

On this page