Skip to content

raisim::ExplosionProperties ​

struct · #include <raisim/Explosion.hpp>

What an explosion is and does.

Public attributes ​

chargeMass ​

cpp
double chargeMass

TNT-equivalent mass of the charge (kg). For other explosives multiply their mass by their TNT equivalence (for example about 1.2 for Composition B, 1.3 for C-4).

surfaceBurst ​

cpp
bool surfaceBurst

The charge lies on the ground: its hemispherical wave loads objects like a free-air charge of blast::kSurfaceBurstFactor times the mass.

collisionMask ​

cpp
CollisionGroup collisionMask

Collision groups the blast loads: a body takes the blast when its collision group shares a bit with this mask.

lineOfSight ​

cpp
bool lineOfSight

Bodies hidden from the charge by other objects (walls, the ground, other bodies) take only the wave that wraps around them: no reflected pressure and no blast wind.

craterRadius ​

cpp
double craterRadius

Radius (m) of a bowl-shaped crater dug in each heightmap under the charge; zero digs none. The charge must lie within this radius of the terrain surface.

craterDepth ​

cpp
double craterDepth

Depth (m) of the crater at its center.

RaiSim — physics for robotics and AI.