self:get_quaternion

Client

Retrieves the rotation of the point light as a quaternion


Syntax

local quaternion = self:get_quaternion()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
quaternionquaternionCurrent rotation as {x, y, z, w}

Examples

Get the quaternion rotation of a point light
local entity = light.point.create()

core.engine.print("info", "Point light quaternion:", util.table.unpack(entity:get_quaternion()))

On this page