Module particles

Source
Expand description

Bounded particles, seeded emitters, ribbons/trails and short-lived beams. Simulation and geometry use first-party math; no GPU/device dependency.

Structs§

BeamDesc
BeamPool
BeamView
BurstAdmission
Read-only burst admission at the pool’s current occupancy.
DirectionCone
EmissionStats
Emitter
Particle position/velocity and spawn shapes are emitter-local; acceleration remains world-space so rotating a nozzle does not rotate gravity. Counter-seeded emission: dropped work still advances the sequence without iterating it, so pool capacity/quality cannot perturb a gameplay RNG or the random values assigned to later requested particles. No per-frame allocation.
EmitterDesc
EmitterTransform
ParticleDesc
ParticleMotion
ParticlePool
ParticleView
RibbonPath
RibbonPoint
RibbonTriangle
RibbonTriangles
Triangle iterator with bounded miters and explicit breaks; no allocation.
RibbonVertex
Trail
Fixed ring, distance resampling and a current head. Capacity bounds the visible point count (including that head); one extra head value is stored separately. Stops and teleports create breaks; old segments fade naturally without bridges. Use Self::break_segment or Self::teleport for explicit discontinuities, including short respawn jumps, and Self::clear to reset all trail history.
TrailConfig
TrailSample
TrailStats

Enums§

BeamError
OverflowPolicy
ParticleError
RibbonError
RibbonFacing
SpawnShape
TrailError

Constants§

MAX_BEAMS
MAX_EFFECT_LIFETIME
MAX_EMISSION_PER_UPDATE
MAX_PARTICLES
MAX_RIBBON_POINTS
MAX_RIBBON_WIDTH
Largest accepted full ribbon width, in world units.
MAX_TRAIL_POINTS

Traits§

RibbonSource