diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-21 17:04:58 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-21 17:04:58 +0100 |
commit | ea95685b4dd2adf09a9be4e2dd9233d0cf98b1ef (patch) | |
tree | 2877243b80b0c026db7a2a618a15677156f41a56 /src/crepe/api/ParticleEmitter.h | |
parent | adbd81d3937a1363af312202c7e4b5ec0bf3458d (diff) |
Minor changes due to templating of Vector2
Diffstat (limited to 'src/crepe/api/ParticleEmitter.h')
-rw-r--r-- | src/crepe/api/ParticleEmitter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/api/ParticleEmitter.h b/src/crepe/api/ParticleEmitter.h index 33112e1..1960d0d 100644 --- a/src/crepe/api/ParticleEmitter.h +++ b/src/crepe/api/ParticleEmitter.h @@ -30,7 +30,7 @@ public: //! boundary height (midpoint is emitter location) double height = 0.0; //! boundary offset from particle emitter location - Vector2 offset; + Vector2<double> offset; //! reset on exit or stop velocity and set max postion bool reset_on_exit = false; }; @@ -43,7 +43,7 @@ public: */ struct Data { //! position of the emitter - Vector2 position; + Vector2<double> position; //! maximum number of particles const unsigned int max_particles = 0; //! rate of particle emission per update (Lowest value = 0.001 any lower is ignored) @@ -61,7 +61,7 @@ public: //! end Lifespan of particle double end_lifespan = 0.0; //! force over time (physics) - Vector2 force_over_time; + Vector2<double> force_over_time; //! particle boundary Boundary boundary; //! collection of particles |