natiny_particles_set_damping

C
void natiny_particles_set_damping(NatinyParticles particles, float damping);

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

Parameters

Name Type Description
particles NatinyParticles Particle system handle from natiny_particles_create
damping float Drag strength per second; 0 keeps the speed

Example

C
natiny_particles_set_damping(smoke, 1.5f);