Model

self:get_rotation

Shared

Retrieves the local rotation of the model

Syntax

local rotation = self:get_rotation()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector3rotationCurrent local rotation in degrees as {x, y, z}

Examples

Get the local rotation of a model
local entity = core.model.create("character")
local rotation = entity:get_rotation()

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

On this page