Exemple #1
0
 //===========================================================
 // Particle Update Functions
 //===========================================================
 protected void UpdateParticleFlashSize(DefaultSprite3DBillboardTextureCoordinatesParticle particle, float elapsedTimeInSeconds)
 {
     // Have the particle reach its full size when it reaches half its lifetime, and then shrink back to nothing
     particle.Size = MathHelper.Lerp(particle.StartSize, particle.EndSize, DPSFHelper.InterpolationAmountForEqualLerpInAndLerpOut(particle.NormalizedElapsedTime));
 }