Model
self:scale_local
SharedScales the model in its own local coordinate space
Syntax
local status = self:scale_local(
scale
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | scale | Scale factor to apply as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
core.model.load("character", "models/character.glb")
local entity = core.model.create("character")
entity:scale_local({2, 2, 2})