GPU Particles

self:set_scale_curve

Client

Scales the particle over its lifetime

Syntax

local status = self:set_scale_curve(
    from,
    to
)

The curve multiplies the SCALE parameter.

Parameters

TypeNameDescription
floatfromScale multiplier at the start of the particle lifetime, at least 0
floattoScale multiplier at the end of the particle lifetime, at least 0

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Shrink particles to nothing
local entity = particle.gpu.create()

entity:set_scale_curve(1, 0)

On this page