Point Light

self:rotate_local

Client

Rotates the point 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 point light around its local Y axis
local entity = light.point.create()

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

On this page