diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-07 22:44:35 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-07 22:44:35 +0100 |
commit | 8c81bf4a33a13fc21dca7e3fe78a6dc334ac964b (patch) | |
tree | 591cf1d62731c6f206a9a54d011ddf462631c41a /src/crepe/system/ParticleSystem.h | |
parent | 31e4ba33bec0cc5c33d9668cd0244972523bf8ad (diff) |
changed spawnrate of particles (bound to delta time)
Diffstat (limited to 'src/crepe/system/ParticleSystem.h')
-rw-r--r-- | src/crepe/system/ParticleSystem.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/crepe/system/ParticleSystem.h b/src/crepe/system/ParticleSystem.h index 2adb0f0..454b65f 100644 --- a/src/crepe/system/ParticleSystem.h +++ b/src/crepe/system/ParticleSystem.h @@ -23,6 +23,7 @@ public: void update() override; private: + /** * \brief Emits a particle from the specified emitter based on its emission properties. * @@ -32,16 +33,6 @@ private: void emit_particle(ParticleEmitter & emitter, const Transform & transform); /** - * \brief Calculates the number of times particles should be emitted based on emission rate - * and update count. - * - * \param count Current update count. - * \param emission Emission rate. - * \return The number of particles to emit. - */ - int calculate_update(int count, float emission) const; - - /** * \brief Checks whether particles are within the emitter’s boundary, resets or stops * particles if they exit. * |