raisim::ExplosionProperties
struct · #include <raisim/Explosion.hpp>
What an explosion is and does.
Public attributes
chargeMass
double chargeMassTNT-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
bool surfaceBurstThe charge lies on the ground: its hemispherical wave loads objects like a free-air charge of blast::kSurfaceBurstFactor times the mass.
collisionMask
CollisionGroup collisionMaskCollision groups the blast loads: a body takes the blast when its collision group shares a bit with this mask.
lineOfSight
bool lineOfSightBodies 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
double craterRadiusRadius (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
double craterDepthDepth (m) of the crater at its center.