natiny.particles.set_radial

Lua
natiny.particles.set_radial(particles, radial [, tangential])

Sets accelerations that push particles away from the emitter and swirl them around it.

Parameters

Name Type Default Description
particles number Particle system handle from natiny.particles.create
radial number Acceleration away from the emitter, in units per second squared; negative pulls in
tangential number 0 Acceleration around the emitter; negative swirls the other way

Example

Lua
natiny.particles.set_radial(portal, -2, 6)