aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Particle.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-14 10:35:08 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-14 10:35:08 +0100
commita0c8c09c8c363b239d72bd16303395fb8c23b948 (patch)
treed6c5f15c00b3762848ac1427cd3e0d48e9779dec /src/crepe/Particle.h
parent8850ba096b6b4ae2dc3a813620dd35433b3c6c55 (diff)
parentbe1e97bc7a494963ab1567492fafcda99e36f683 (diff)
Merge branch 'master' into niels/RenderingParticle
Diffstat (limited to 'src/crepe/Particle.h')
-rw-r--r--src/crepe/Particle.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/crepe/Particle.h b/src/crepe/Particle.h
index 06431bb..3eaebc3 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,8 +43,8 @@ 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,
- double angle);
+ void reset(uint32_t lifespan, const Vector2 & position,
+ const Vector2 & velocity, double angle);
/**
* \brief Updates the particle's state.
*