Trail

self:get_rotation

Client

Retrieves the local rotation of the trail in Euler degrees

Syntax

local rotation = self:get_rotation()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector3rotationCurrent local rotation as Euler degrees {x, y, z}

Examples

Get the local rotation of a trail
local entity = particle.trail.create()
local rotation = entity:get_rotation()

core.engine.print("info", "Trail rotation:", util.table.unpack(rotation))

On this page