self:translate_local

Client

Moves the directional light by the given offset relative to its local axes


Syntax

local status = self:translate_local(
    offset
)

Parameters

TypeNameDescription
vector3offsetLocal-space offset to apply as {x, y, z}

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Move a directional light forward along its local Z axis
local entity = light.directional.create()

entity:translate_local({0, 0, 2})

On this page