X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2FEntities%2FParticle.cpp;h=c978d3877bde081423bb87bb28c66d09c5017170;hp=d84ce754988d4fdee55c52ef7489de969a6189dd;hb=3ae4b04702cc54d19264e57105a7073c40c5e116;hpb=fd1a93a71bc0222dd77f56c145d550cb6f7829bc diff --git a/src/Entities/Particle.cpp b/src/Entities/Particle.cpp index d84ce75..c978d38 100644 --- a/src/Entities/Particle.cpp +++ b/src/Entities/Particle.cpp @@ -50,5 +50,5 @@ void Particle::update(float time_step) m_lifeTime -= time_step; m_isDead = m_lifeTime <= 0; } - position += velocity * time_step; + m_position += m_velocity * time_step; }