Model

self:get_scale

Shared

Retrieves the local scale of the model

Syntax

local scale = self:get_scale()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector3scaleCurrent local scale as {x, y, z}

Examples

Get the local scale of a model
core.model.load("character", "models/character.glb")

local entity = core.model.create("character")
local scale = entity:get_scale()

core.engine.print("info", "Model scale:", util.table.unpack(scale))

On this page