self:set_rotation

Client

Sets the local rotation of the camera in Euler degrees


Syntax

local status = self:set_rotation(
    euler_degrees
)

Parameters

TypeNameDescription
vector3euler_degreesLocal rotation to apply as Euler degrees {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the local rotation of a camera
local entity = core.camera.create()

entity:set_rotation({0, 45, 0})

On this page