Example #1
0
 public override void Update(Particle part)
 {
     Vector2 force = point - part.position;
     MathExtra.SetVectorLength(ref force, strength);
     part.AddForce(force);
 }
Example #2
0
 public override void Update(Particle part)
 {
     part.AddForce(force);
 }
Example #3
0
 public override void Update(Particle part)
 {
     part.scale = startScale + (endScale - startScale) * part.normalizedLifetime;
 }
Example #4
0
 public void DestroyParticle(Particle part)
 {
     alphaParticles.RemoveBuffer.Add(part);
     additiveParticles.RemoveBuffer.Add(part);
 }
Example #5
0
 public void AddParticle(Particle part, bool additive)
 {
     if (additive) { additiveParticles.AddBuffer.Add(part); }
     else { alphaParticles.AddBuffer.Add(part); }
 }
Example #6
0
 public void AddParticle(Particle part)
 {
     AddParticle(part, false);
 }
Example #7
0
 public abstract void Update(Particle part);
Example #8
0
 public override void Update(Particle part)
 {
     part.alpha = 4 * part.normalizedLifetime * (1 - part.normalizedLifetime);
 }