GPU Particles

self:get_param

Client

Retrieves the randomization range of a particle parameter

Syntax

local min, max = self:get_param(
    param
)

Parameters

TypeNameDescription
particle.gpu.paramparamParticle parameter to query

Returns

TypeNameDescription
floatminMinimum value of the parameter
floatmaxMaximum value of the parameter

Examples

Get the velocity range
local entity = particle.gpu.create()

local min, max = entity:get_param(particle.gpu.param.VELOCITY)

core.engine.print("info", min, max)

On this page