public void init ( ParticleEmitter emitter , float life ) { x = 0 ; this . emitter = emitter ; y = 0 ; velx = 0 ; vely = 0 ; size = 10 ; type = 0 ; this . originalLife = this . life = life ; oriented = false ; scaleY = 1.0f ; }
Initialise the state of the particle as it s reused