diff options
Diffstat (limited to 'src/render/particle.cc')
-rw-r--r-- | src/render/particle.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/render/particle.cc b/src/render/particle.cc index ddd8abd..5925ba5 100644 --- a/src/render/particle.cc +++ b/src/render/particle.cc @@ -16,13 +16,22 @@ Particle::Particle(const math::Vector3f &location, const unsigned long timestamp particle_location(location) { particle_timestamp = timestamp; + + particle_speed = 0.0f; + particle_radius = 0.0f; + particle_alpha = 0.0f; + } -Particle::Particle(const math::Vector3f &location, const math::Vector3f &velocity, const unsigned long timestamp) : +Particle::Particle(const math::Vector3f &location, const math::Axis &axis, const unsigned long timestamp) : particle_location(location), - particle_velocity(velocity) + particle_axis(axis) { particle_timestamp = timestamp; + + particle_speed = 0.0f; + particle_radius = 0.0f; + particle_alpha = 0.0f; } } //namespace render |