self:rotate

Client

Rotates the area light around the given world-space axis by the specified angle


Syntax

local status = self:rotate(
    axis,
    angle
)

Parameters

TypeNameDescription
vector3axisWorld-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 90 degrees around the Y axis
local entity = light.area.create()

entity:rotate({0, 1, 0}, math.pi / 2)

On this page