self:rotate_local

Client

Rotates the area light around the given local axis by the specified angle


Syntax

local status = self:rotate_local(
    axis,
    angle
)

Parameters

TypeNameDescription
vector3axisLocal-space axis to rotate around as {x, y, z}
floatangleAngle in radians

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Rotate a area light around its local Y axis
local entity = light.area.create()

entity:rotate_local({0, 1, 0}, math.pi / 4)

On this page