Spawns shockwave ring + fireball + smoke cloud for rocket explosions.
More...
#include <ExplosionEffect.hpp>
Spawns shockwave ring + fireball + smoke cloud for rocket explosions.
Reuses BillboardParticle for the shockwave ring and SmokeEffect for fire/smoke.
◆ ringCount()
| uint32_t ExplosionEffect::ringCount |
( |
| ) |
const |
|
inline |
◆ ringData()
◆ spawn()
| void ExplosionEffect::spawn |
( |
glm::vec3 |
pos, |
|
|
float |
blastRadius, |
|
|
SmokeEffect & |
smoke |
|
) |
| |
Spawn a full explosion at pos with given blast radius.
- Parameters
-
| pos | World-space center of the explosion. |
| blastRadius | Radius controlling ring size and smoke spread. |
| smoke | SmokeEffect instance used to spawn fire and smoke puffs. |
◆ update()
| void ExplosionEffect::update |
( |
float |
dt | ) |
|
Advance ring animations and tick deferred smoke timers.
The documentation for this class was generated from the following files: