self:get_rotation

Client

Retrieves the local rotation of the camera in Euler degrees


Syntax

local rotation = self:get_rotation()

Parameters

No parameters are accepted by this function

Returns

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

Examples

Get the local rotation of a camera
local entity = core.camera.create()
local rotation = entity:get_rotation()

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

On this page