natiny.particles.set_spin
natiny.particles.set_spin(particles, min [, max])
Sets how fast each new particle turns.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
particles |
number |
Particle system handle from natiny.particles.create |
|
min |
number |
Smallest turning speed, in degrees per second | |
max |
number |
min |
Largest turning speed, in degrees per second |
Example
natiny.particles.set_spin(smoke, -30, 30)