natiny_particles_set_stretch

C
void natiny_particles_set_stretch(NatinyParticles particles, float stretch);

Sets how much a stretched particle lengthens with its speed.

Parameters

Name Type Description
particles NatinyParticles Particle system handle from natiny_particles_create
stretch float Extra length per unit of speed, in seconds

Example

C
natiny_particles_set_stretch(sparks, 0.05f);