Skip to content

raisin::FireEffect ​

struct · #include <rayrai/ExplosionEffects.hpp>

A fire that burns for a while (RayraiWindow::addFireEffect()): flickering flames at its base and a column of smoke that rises, spreads and drifts with the wind.

Public attributes ​

position ​

cpp
glm::vec3 position

Base of the fire, world frame (m).

size ​

cpp
float size

Radius of the flames (m), > 0; the smoke scales with it.

duration ​

cpp
float duration

Seconds it burns, > 0; the flames die down over the last fifth.

smokeColor ​

cpp
glm::vec3 smokeColor

Albedo of the smoke (linear RGB).

RaiSim — physics for robotics and AI.