natiny.particles.set_speed

Lua
natiny.particles.set_speed(particles, min [, max])

Sets how fast each new particle starts moving along its start direction.

Parameters

Name Type Default Description
particles number Particle system handle from natiny.particles.create
min number Smallest speed, in units per second
max number min Largest speed, in units per second

Example

Lua
natiny.particles.set_speed(sparks, 2, 5)