natiny.particles.set_damping

Lua
natiny.particles.set_damping(particles, damping)

Sets how quickly particles lose speed, as if moving through air or water.

Parameters

Name Type Description
particles number Particle system handle from natiny.particles.create
damping number Drag strength per second; 0 keeps the speed

Example

Lua
natiny.particles.set_damping(smoke, 1.5)