aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/ParticleEmitter.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-07 22:44:35 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-07 22:44:35 +0100
commit8c81bf4a33a13fc21dca7e3fe78a6dc334ac964b (patch)
tree591cf1d62731c6f206a9a54d011ddf462631c41a /src/crepe/api/ParticleEmitter.h
parent31e4ba33bec0cc5c33d9668cd0244972523bf8ad (diff)
changed spawnrate of particles (bound to delta time)
Diffstat (limited to 'src/crepe/api/ParticleEmitter.h')
-rw-r--r--src/crepe/api/ParticleEmitter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crepe/api/ParticleEmitter.h b/src/crepe/api/ParticleEmitter.h
index e8fa15e..48c7625 100644
--- a/src/crepe/api/ParticleEmitter.h
+++ b/src/crepe/api/ParticleEmitter.h
@@ -52,6 +52,8 @@ public:
const unsigned int max_particles = 256;
//! rate of particle emission per update (Lowest value = 0.001 any lower is ignored)
float emission_rate = 1;
+ //! Saves time left over from last update event.
+ float spawn_accumulator = 0;
//! min speed of the particles
float min_speed = 1;
//! min speed of the particles