Skip to content

raisin::ExplosionEffect ​

struct · #include <rayrai/ExplosionEffects.hpp>

An explosion to draw (RayraiWindow::addExplosionEffect()).

Public attributes ​

position ​

cpp
glm::vec3 position

Center of the charge, world frame (m).

chargeMass ​

cpp
float chargeMass

TNT-equivalent mass (kg), > 0: sets size and duration.

onGround ​

cpp
bool onGround

Raise a ring of dust and leave a scorch mark below.

smokeColor ​

cpp
glm::vec3 smokeColor

Albedo of the smoke (linear RGB).

dustColor ​

cpp
glm::vec3 dustColor

Albedo of the earth and dust of a ground burst (linear RGB).

inWater ​

cpp
bool inWater

Burst at a water surface: a column of spray rises and falls back instead of earth and dust.

RaiSim — physics for robotics and AI.