self:get_global_rotation
Client
Retrieves the global world-space rotation of the point light
Syntax
local rotation = self:get_global_rotation()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | rotation | Current global world-space rotation in degrees as {x, y, z} |
Examples
local entity = light.point.create()
local rotation = entity:get_global_rotation()
core.engine.print("info", "Point light rotation:", util.table.unpack(rotation))