natiny.particles.set_damping
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
natiny.particles.set_damping(smoke, 1.5)