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

Method FlyFlyFly

src/SB/Game/zNPCSupport.cpp:645–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643}
644
645void Firework::FlyFlyFly(F32 dt)
646{
647 F32 pam_life = 1.0f - CLAMP(this->tmr_remain / this->tym_lifespan, 0.0f, 1.0f);
648 if (pam_life < 0.75f)
649 {
650 xVec3 dir_trav = this->vel;
651 dir_trav.normalize();
652
653 this->vel += dir_trav * (Firework::acc_thrust * dt);
654 }
655
656 this->vel += g_NY3 * (Firework::acc_gravity * dt);
657
658 NPAR_EmitFWExhaust(&this->pos, &g_O3);
659}
660
661void Firework::Detonate()
662{

Callers 1

UpdateMethod · 0.95

Calls 1

NPAR_EmitFWExhaustFunction · 0.85

Tested by

no test coverage detected