Spawns shockwave ring + fireball + smoke cloud for rocket explosions.
More...
#include <ExplosionEffect.hpp>
|
| struct | PendingSmoke |
| | Deferred smoke or fire spawn scheduled after the initial explosion. More...
|
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 |
|
inlinenodiscard |
◆ 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.
◆ k_maxPending
| int ExplosionEffect::k_maxPending = 32 |
|
staticconstexprprivate |
◆ pending_
◆ pendingCount_
| int ExplosionEffect::pendingCount_ = 0 |
|
private |
◆ ringPool_
The documentation for this class was generated from the following files: