Point Light
self:rotate
ClientRotates the point light around an axis in the parent's coordinate space
Syntax
local status = self:rotate(
axis,
degrees
)Parameters
| Type | Name | Description |
|---|---|---|
vector3 | axis | 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.point.create()
entity:rotate({0, 1, 0}, 90)