| 643 | } |
| 644 | |
| 645 | void 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 | |
| 661 | void Firework::Detonate() |
| 662 | { |
no test coverage detected