aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/particles/je_particle.cpp
blob: 20bbd039de7b01fedb478a7dd28edae61fa2336d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "je_particle.h"

namespace JinEngine
{
    namespace Graphics
    {
        namespace Particles
        {

            void Particle::reset()
            {
                lifeTime = 0.0f; 
                life = 0.0f; 
                position.set(0, 0);
                direction = 0.0f; 
                speed.set(0, 0); 
                linearAcceleration.set(0, 0); 
                radialAcceleration = 0.0f; 
                size = 1; 
                sizeBegin = 1; 
                alive = true;
            }

        }
    }
}