Spot Light

self:rotate

Client

Rotates the spot light around an axis in the parent's coordinate space

Syntax

local status = self:rotate(
    axis,
    degrees
)

Parameters

TypeNameDescription
vector3axisAxis to rotate around as {x, y, z}
floatdegreesAngle in degrees

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Rotate a spot light 90 degrees around the Y axis
local entity = light.spot.create()

entity:rotate({0, 1, 0}, 90)

On this page