GPU Particles
self:set_quaternion
ClientSets the local rotation of the particle emitter using a quaternion
Syntax
local status = self:set_quaternion(
quaternion
)Parameters
| Type | Name | Description |
|---|---|---|
quaternion | quaternion | Rotation quaternion to apply as {x, y, z, w} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_quaternion({0, 0, 0, 1})