raisin::ExplosionEffect
struct · #include <rayrai/ExplosionEffects.hpp>
An explosion to draw (RayraiWindow::addExplosionEffect()).
Public attributes
position
cpp
glm::vec3 positionCenter of the charge, world frame (m).
chargeMass
cpp
float chargeMassTNT-equivalent mass (kg), > 0: sets size and duration.
onGround
cpp
bool onGroundRaise a ring of dust and leave a scorch mark below.
smokeColor
cpp
glm::vec3 smokeColorAlbedo of the smoke (linear RGB).
dustColor
cpp
glm::vec3 dustColorAlbedo of the earth and dust of a ground burst (linear RGB).
inWater
cpp
bool inWaterBurst at a water surface: a column of spray rises and falls back instead of earth and dust.