benilla-re systems structs docs

CParticleEmitter2

struct · models · 656 bytes

Vtable
0x81d83c
Meaning
Holds a model particle emitter: its particles, parameters, gradients, matrices and flags
Confidence
verified, proof one
Finding
models/emission#record-to-emitter

Finding: Record to emitter in models: emission

The record's scalars land in the emitter as follows; the twinkle, spin and follow terms are used by the draw and the update.

recordemitter
+0x180, +0x184twinkle speed +0x1b0, visible fraction +0x1b4
+0x188, +0x18ctwinkle scale: minimum +0x1b8, range +0x1c0 = max − min
+0x190inherited velocity scale +0x1c4
+0x194, +0x198drag +0x1e0, spin +0x18c
+0x19c to +0x1b0model particle minimum and maximum vectors, +0x1c8 to +0x1dc as minimum and range
+0x1b4, +0x1c0wind +0x1e4, wind time +0x1f0
+0x1c4 to +0x1d0follow mapping (s0, f0, s1, f1): slope +0x1f8, intercept +0x1f4
+0x1d4spline points, through 0x7b9a80 for type 3

The derivation is in the doc.

Fields 42

offsetsizetypenamemeaningconfidencefinding
0x000c4uint32_tm_columnShiftHolds log2 of the texture grid columnsverified, proof onemodels/particles#head-quads
0x00108float[2]m_cellSizeHolds the cell width and height in texture spaceverified, proof onemodels/particles#head-quads
0x00284uint32_tm_hasModelHolds 1 once the emitter has a particle model, which makes its particles model particlesverified, proof onemodels/particles#emitter-model-loads
0x002c8NTempest::CRndSeedm_randomHolds the random state spawns draw fromverified, proof onemodels/emission#speed-and-birth
0x003c4CParticle2 *m_particlesHolds the 0x20-byte particles of an emitter without a modelverified, proof onemodels/particles#frame-change
0x004c4void *m_modelParticlesHolds the 0x40-byte model particlesverified, proof onemodels/particles#frame-change
0x005c4uint32_t *m_liveHolds the live particle indicesverified, proof onemodels/particles#particle-life
0x00644uint32_tm_liveCountHolds the number of live particlesverified, proof onemodels/particles#particle-life
0x00704uint32_t *m_freeHolds the free particle indicesverified, proof onemodels/particles#particle-life
0x007c4uint32_tm_childCountHolds the number of child emittersverified, proof onemodels/particles#child-emitters
0x008016CParticleEmitter2 *[4]m_childrenHolds the four child emitter slots each particle carriesverified, proof onemodels/particles#emitter-model-loads
0x00904CM2Model *m_modelHolds the model each particle drawsverified, proof onemodels/particles#emitter-model-loads
0x00944M2Scene *m_modelSceneHolds the scene the particle model was made inverified, proof onemodels/particles#emitter-model-loads
0x00984CM2Model *m_childModelHolds the model whose emitters become the childrenverified, proof onemodels/particles#emitter-model-loads
0x009c4uint32_tm_vertsPerParticleHolds 4 per head or tail, the vertices one particle writesverified, proof onemodels/particles#draw-order-and-batches
0x00a04uint32_tm_indicesPerParticleHolds 6 per head or tail, the indices one particle takesverified, proof onemodels/particles#draw-order-and-batches
0x00ac4floatm_lifespanHolds the particle lifespan in secondsverified, proof onemodels/particles#particle-life
0x00b44floatm_tailLengthHolds the tail length factorverified, proof onemodels/particles#tail-quads
0x00bc192uint8_t[192]m_gradientsHolds the two 0x60-byte gradientsverified, proof onemodels/particles#gradients
0x017c4floatm_speedHolds the emission speedverified, proof onemodels/emission#speed-and-birth
0x01804floatm_gravityHolds the gravityverified, proof onemodels/particles#particle-motion
0x01844floatm_speedVariationHolds the speed variationverified, proof onemodels/emission#speed-and-birth
0x01884floatm_zSourceHolds the z source, 0 when under 0.001 in magnitudeverified, proof onemodels/emission#plane-spawn
0x018c4floatm_spinHolds the spin in radians per secondverified, proof onemodels/particles#head-quads
0x01988uint32_t[2]m_gridHolds the texture grid rows and columnsverified, proof onemodels/particles#head-quads
0x01a84floatm_alphaHolds the instance alpha the colours scale byverified, proof onemodels/emission#per-frame-parameters
0x01ac4uint32_tm_flagsHolds the emitter flagsverified, proof onemodels/emission#record-flags
0x01b04floatm_twinkleSpeedHolds the twinkle speedverified, proof onemodels/particles#twinkle
0x01b44floatm_twinkleVisibleHolds the fraction of particles twinkle leaves visibleverified, proof onemodels/particles#twinkle
0x01b812float[3]m_twinkleScaleHolds the twinkle scale minimum, maximum and rangeverified, proof onemodels/particles#twinkle
0x01c44floatm_inheritScaleHolds the scale of the velocity the emitter derives from its motionverified, proof onemodels/emission#record-to-emitter
0x01c824float[6]m_modelRangesHolds the model particle minimum and range for each axisverified, proof onemodels/emission#record-to-emitter
0x01e04floatm_dragHolds the dragverified, proof onemodels/particles#particle-motion
0x01e412float[3]m_windHolds the windverified, proof onemodels/particles#particle-motion
0x01f04floatm_windTimeHolds the age under which wind appliesverified, proof onemodels/particles#particle-motion
0x01f48float[2]m_followHolds the follow mapping intercept and slopeverified, proof onemodels/emission#record-to-emitter
0x01fc64float[16]m_matrixHolds the emitter matrix, relative to the reference frame in world spaceverified, proof onemodels/particles#particle-view-space
0x023c12float[3]m_cameraPositionHolds the camera position the draw translates byverified, proof onemodels/particles#particle-view-space
0x024812float[3]m_lastPositionHolds the emitter position of the previous updateverified, proof onemodels/particles#child-emitters
0x025812float[3]m_velocityHolds the emitter velocity particles inheritverified, proof onemodels/emission#spawn-space
0x02644floatm_scaleHolds the length of the emitter matrix first rowverified, proof onemodels/particles#particle-view-space
0x028412float[3]m_flatAxisHolds the emitter z axis in view space that flat quads turn aboutverified, proof onemodels/particles#head-quads