protected void addParticle(Vector2 pos, float size, double maxAge, GameTime gameTime) { ParticleData data = new ParticleData(); data.OrginalPosition = pos; data.Position = pos; data.BirthTime = (float)gameTime.TotalGameTime.TotalMilliseconds; data.MaxAge = maxAge; data.Scaling = size; // 0.25f; data.ModColor = Color.White; float particleDistance = (float)generator.NextDouble() * size; Vector2 displacement = new Vector2(particleDistance, 0); float angle = MathHelper.ToRadians(generator.Next(360)); displacement = Vector2.Transform(displacement, Matrix.CreateRotationZ(angle)); data.Direction = displacement; data.Accelaration = 3.0f * data.Direction; particles.Add(data); }