Spot Light

self:rotate_local

Client

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

Syntax

local status = self:rotate_local(
    axis,
    degrees
)

Parameters

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

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:rotate_local({0, 1, 0}, 45)

On this page