benilla-re systems structs docs

CParticle2

struct · models · 32 bytes

Meaning
Holds one particle: position, gradient byte, velocity and age
Confidence
verified, proof one
Finding
models/particles#particle-life

Finding: Particle life in models: particles

A step first lets an enabled emitter or one with a pending burst reserve storage, then spawns. Each live particle then ages by dt and dies once its age reaches the lifespan, a NaN age included. A survivor takes gradient 1 once its age is past mid·lifespan, else gradient 0, and moves (Particle motion); a move that returns 0 kills it. A dead particle's slot returns to the free list and the last live index takes its place in the live list.

The derivation is in the doc.

Fields 4

offsetsizetypenamemeaningconfidencefinding
0x000012float[3]m_positionHolds the position, in world or emitter spaceverified, proof onemodels/particles#particle-life
0x000c1uint8_tm_gradientHolds which gradient colours the particle, 1 past the midpointverified, proof onemodels/particles#particle-life
0x001012float[3]m_velocityHolds the velocityverified, proof onemodels/emission#spawn-space
0x001c4floatm_ageHolds the age in secondsverified, proof onemodels/particles#particle-life