diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-11-13 19:00:29 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-11-13 19:00:29 +0100 |
commit | 1d4b3a44c9ce1e69f4f0e3909998225f8af3fea2 (patch) | |
tree | 9ce098dee89a3f12cbd103e1e944b4a429e35b14 /src/crepe/Particle.h | |
parent | e42d0877592aa1e88afbe0bc65822cd53a82205d (diff) |
fixed feedback
Diffstat (limited to 'src/crepe/Particle.h')
-rw-r--r-- | src/crepe/Particle.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/crepe/Particle.h b/src/crepe/Particle.h index 06431bb..8782382 100644 --- a/src/crepe/Particle.h +++ b/src/crepe/Particle.h @@ -30,9 +30,8 @@ public: //! The time the particle has been alive, in milliseconds. uint32_t time_in_life = 0; //! The angle at which the particle is oriented or moving. - double angle; + double angle = 0; - Particle() = default; /** * \brief Resets the particle with new properties. * @@ -44,7 +43,7 @@ public: * \param velocity The initial velocity of the particle. * \param angle The angle of the particle's trajectory or orientation. */ - void reset(uint32_t lifespan, Vector2 position, Vector2 velocity, + void reset(uint32_t lifespan, const Vector2& position,const Vector2& velocity, double angle); /** * \brief Updates the particle's state. |