self:set_scale

Client

Sets the local scale of the animatable body


Syntax

local status = self:set_scale(
    scale
)

Parameters

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

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the local scale of a animatable body
local entity = physics.animatable.create()

entity:set_scale({1, 1, 1})

On this page