Skip to main content

gpu_emit_particles

Function gpu_emit_particles 

Source
pub fn gpu_emit_particles(system: &mut GpuParticleSystem, n: usize)
Expand description

Spawn n particles from the emitter into the system.

Uses a deterministic direction fan spread around +Z so results are reproducible without a random number generator. Respects max_particles.