GPU Particles
self:set_param
ClientSets the randomization range of a particle parameter
Syntax
local status = self:set_param(
param,
min,
max = min
)The values are sorted automatically.
minandmaxmay be passed in any order — the smaller one becomes the minimum.
Parameters
| Type | Name | Description |
|---|---|---|
particle.gpu.param | param | Particle parameter to modify |
float | min | Minimum value of the parameter |
float | max | Maximum value of the parameter |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_param(particle.gpu.param.VELOCITY, 0.5, 1.5)local entity = particle.gpu.create()
entity:set_param(particle.gpu.param.SCALE, 0.8)