self:get_quaternion
Client
Retrieves the rotation of the spot light as a quaternion
Syntax
local quaternion = self:get_quaternion()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
quaternion | quaternion | Current rotation as {x, y, z, w} |
Examples
local entity = light.spot.create()
core.engine.print("info", "Spot light quaternion:", util.table.unpack(entity:get_quaternion()))