GPU Particles
self:get_global_rotation
ClientRetrieves the global rotation of the particle emitter in Euler degrees
Syntax
local rotation = self:get_global_rotation()Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
vector3 | rotation | Current global rotation as Euler degrees {x, y, z} |
Examples
local entity = particle.gpu.create()
local rotation = entity:get_global_rotation()
core.engine.print("info", "Emitter global rotation:", util.table.unpack(rotation))