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