self:rotate
Client
Rotates the directional light around the given world-space axis by the specified angle
Syntax
local status = self:rotate(
axis,
angle
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | axis | World-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({0, 1, 0}, math.pi / 2)