self:rotate_local
Client
Rotates the directional light around the given local axis by the specified angle
Syntax
local status = self:rotate_local(
axis,
angle
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | axis | Local-space axis to rotate around as {x, y, z} |
float | angle | Angle in radians |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = light.directional.create()
entity:rotate_local({0, 1, 0}, math.pi / 4)