natiny_particles_set_radial

C
void natiny_particles_set_radial(NatinyParticles particles, float radial, float tangential);

Sets accelerations that push particles away from the emitter and swirl them around it.

Parameters

Name Type Description
particles NatinyParticles Particle system handle from natiny_particles_create
radial float Acceleration away from the emitter, in units per second squared; negative pulls in
tangential float Acceleration around the emitter; negative swirls the other way

Example

C
natiny_particles_set_radial(portal, -2.0f, 6.0f);