natiny.particles.set_rotation
natiny.particles.set_rotation(particles, min [, max])
Sets the angle each new particle starts at.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
particles |
number |
Particle system handle from natiny.particles.create |
|
min |
number |
Smallest angle, in degrees | |
max |
number |
min |
Largest angle, in degrees |
Example
natiny.particles.set_rotation(leaves, 0, 360)