Model

self:scale_local

Shared

Scales the model in its own local coordinate space

Syntax

local status = self:scale_local(
    scale
)

Parameters

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

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Scale a model locally
core.model.load("character", "models/character.glb")

local entity = core.model.create("character")

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

On this page