GPU Particles
self:get_param
ClientRetrieves the randomization range of a particle parameter
Syntax
local min, max = self:get_param(
param
)Parameters
| Type | Name | Description |
|---|---|---|
particle.gpu.param | param | Particle parameter to query |
Returns
| Type | Name | Description |
|---|---|---|
float | min | Minimum value of the parameter |
float | max | Maximum value of the parameter |
Examples
local entity = particle.gpu.create()
local min, max = entity:get_param(particle.gpu.param.VELOCITY)
core.engine.print("info", min, max)