Model

self:set_global_position

Shared

Sets the global position of the model

Syntax

local status = self:set_global_position(
    position
)

Parameters

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

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the global position of a model
core.model.load("character", "models/character.glb")

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

entity:set_global_position({0, 5, 0})

On this page