CParticleEmitter2::SnapSpawnToGround
function · models · primitive
- Address
0x7b2140· 109 bytes, up to0x7b21ac- Signature
void __thiscall (CParticleEmitter2 *this, void *particle)- Meaning
- Puts a particle at the ground height the scene callback answers plus its current size
- Confidence
- verified, proof one
- Finding
- models/emission#spawn-space
- Test
models::color_scale_apply_sum_difftest
Finding: Spawn space in models: emission
Without flag 0x100 the new position goes through the emitter matrix and the velocity through it as
a direction, so the particle lives in world space. With flag 0x20000 it then asks the scene's
ground callback for the height below it and, when answered, sits at that height plus its current
size. With flag 0x100 both stay in the emitter's space. Last, with flag 0x400, the emitter's
velocity times 1 + S·variation adds to the particle's velocity.
The derivation is in the doc.
Callers 4
- CParticleEmitter2::InitParticle models
- PlaneEmitterSpawnParticle models
- SphereEmitterSpawnParticle models
- SplineEmitterSpawnParticle models
Callees 1
- ParticleGradientSample models
Calls and jumps by a bare address, from tables/calls.tsv.