aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Particle.h
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-21 17:04:58 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-21 17:04:58 +0100
commitea95685b4dd2adf09a9be4e2dd9233d0cf98b1ef (patch)
tree2877243b80b0c026db7a2a618a15677156f41a56 /src/crepe/Particle.h
parentadbd81d3937a1363af312202c7e4b5ec0bf3458d (diff)
Minor changes due to templating of Vector2
Diffstat (limited to 'src/crepe/Particle.h')
-rw-r--r--src/crepe/Particle.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/crepe/Particle.h b/src/crepe/Particle.h
index 19859fe..570c9be 100644
--- a/src/crepe/Particle.h
+++ b/src/crepe/Particle.h
@@ -18,11 +18,11 @@ class Particle {
public:
//! Position of the particle in 2D space.
- Vector2 position;
+ Vector2<double> position;
//! Velocity vector indicating the speed and direction of the particle.
- Vector2 velocity;
+ Vector2<double> velocity;
//! Accumulated force affecting the particle over time.
- Vector2 force_over_time;
+ Vector2<double> force_over_time;
//! Total lifespan of the particle in milliseconds.
uint32_t lifespan;
//! Active state of the particle; true if it is in use, false otherwise.
@@ -43,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, const Vector2 & position, const Vector2 & velocity,
- double angle);
+ void reset(uint32_t lifespan, const Vector2<double> & position,
+ const Vector2<double> & velocity, double angle);
/**
* \brief Updates the particle's state.
*