protected override void InitializeParticle3D(Particle p, Vector3 where) { base.InitializeParticle3D(p, where); p.Acceleration3D.X += RandomHelper.GetRandomFloat(1, 5); }
/// <summary> /// InitializeParticle is overridden to add the appearance of wind. /// </summary> /// <param name="p">the particle to set up</param> /// <param name="where">where the particle should be placed</param> protected override void InitializeParticle(Particle p, Vector2 where) { base.InitializeParticle(p, where); // the base is mostly good, but we want to simulate a little bit of wind // heading to the right. p.Acceleration.X += RandomHelper.GetRandomFloat(10, 50); }