M2SceneSetGroundCallback
function · models · orchestration
- Address
0x70a250· 36 bytes, up to0x70a273- Signature
void __thiscall (M2Scene *this, void *callback, void *arg)- Meaning
- Stores the scene's ground height callback and its argument, and copies them to the globals the particle snap reads
- Confidence
- verified, proof one
- Finding
- models/emission#spawn-space
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 1
- CWorld::Initialize terrain
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.