aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Particle.cpp
diff options
context:
space:
mode:
authorjaroWMR <jarorutjes07@gmail.com>2024-10-07 16:39:26 +0200
committerjaroWMR <jarorutjes07@gmail.com>2024-10-07 16:39:26 +0200
commit5cf5cf64d6f9597849ed5558da4f1bc201165fed (patch)
treeb0b02e8b71c5e8e5afba4212daa999c5cc04bd26 /src/crepe/Particle.cpp
parent096e0d0a7199ec9a4059fd5ef8a06a3cf8fcae83 (diff)
updated system
Diffstat (limited to 'src/crepe/Particle.cpp')
-rw-r--r--src/crepe/Particle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crepe/Particle.cpp b/src/crepe/Particle.cpp
index f6bbd34..3254b5b 100644
--- a/src/crepe/Particle.cpp
+++ b/src/crepe/Particle.cpp
@@ -1,5 +1,5 @@
#include "Particle.hpp"
-
+#include <iostream>
Particle::Particle(float lifespan, Position position, Position velocity)
: lifespan(lifespan), position(position), velocity(velocity), timeInLife(0.0f) {}
@@ -11,5 +11,6 @@ void Particle::update(float deltaTime) {
}
bool Particle::isAlive() const {
+ std::cout << "lifespan" << lifespan << std::endl;
return timeInLife < lifespan;
}