MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zFrag_DefaultParticleUpdate

Function zFrag_DefaultParticleUpdate

src/SB/Game/zShrapnel.cpp:459–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459void zFrag_DefaultParticleUpdate(zFrag* frag, F32 param_2)
460{
461 zFragParticleAsset* passet = frag->info.particle.fasset;
462
463 zFragLoc_InitVec(&passet->source, &passet->emit.pos, frag->parent[0]);
464 zFragLoc_InitDir(&passet->vel, &passet->emit.vel, frag->parent[0]);
465
466 if (frag->prev != NULL)
467 {
468 frag->prev->next = frag->next;
469 }
470
471 if (frag->next != NULL)
472 {
473 frag->next->prev = frag->prev;
474 }
475
476 frag->next = sParticleList.next;
477 frag->prev = &sParticleList;
478
479 if (frag->prev != NULL)
480 {
481 frag->prev->next = frag;
482 }
483
484 if (frag->next != NULL)
485 {
486 frag->next->prev = frag;
487 }
488}
489
490void zFrag_ParticleManager(F32 dt)
491{

Callers

nothing calls this directly

Calls 2

zFragLoc_InitVecFunction · 0.85
zFragLoc_InitDirFunction · 0.70

Tested by

no test coverage detected