GPU Particles
self:set_turbulence
ClientSets whether turbulence is applied to the particles
Syntax
local status = self:set_turbulence(
state,
strength = 1,
scale = 1.5
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | true to enable turbulence, false to disable it |
float | strength | How strongly particles are pushed around Left unchanged when omitted |
float | scale | Size of the turbulence noise Left unchanged when omitted |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_turbulence(true, 0.8, 2)local entity = particle.gpu.create()
entity:set_turbulence(false)