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