group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
ExplosionEffect Class Reference

Spawns shockwave ring + fireball + smoke cloud for rocket explosions. More...

#include <ExplosionEffect.hpp>

Public Member Functions

void update (float dt)
 Advance ring animations and tick deferred smoke timers.
 
void spawn (glm::vec3 pos, float blastRadius, SmokeEffect &smoke)
 Spawn a full explosion at pos with given blast radius.
 
const BillboardParticleringData () const
 
uint32_t ringCount () const
 

Detailed Description

Spawns shockwave ring + fireball + smoke cloud for rocket explosions.

Reuses BillboardParticle for the shockwave ring and SmokeEffect for fire/smoke.

Member Function Documentation

◆ ringCount()

uint32_t ExplosionEffect::ringCount ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ringData()

const BillboardParticle * ExplosionEffect::ringData ( ) const
inline
Here is the call graph for this function:

◆ spawn()

void ExplosionEffect::spawn ( glm::vec3  pos,
float  blastRadius,
SmokeEffect smoke 
)

Spawn a full explosion at pos with given blast radius.

Parameters
posWorld-space center of the explosion.
blastRadiusRadius controlling ring size and smoke spread.
smokeSmokeEffect instance used to spawn fire and smoke puffs.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void ExplosionEffect::update ( float  dt)

Advance ring animations and tick deferred smoke timers.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: