self:translate_local
Client
Moves the area light by the given offset relative to its local axes
Syntax
local status = self:translate_local(
offset
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | offset | Local-space offset to apply as {x, y, z} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.area.create()
entity:translate_local({0, 0, 2})