private void GenerateNewParticle() { Texture2D texture = textures[random.Next(textures.Count)]; PhysicsParticleObject particle = new PhysicsParticleObject(pWorld, texture,Color.Red,EmitterLocation, new Vector2(1f,1f), 100f); particle.body.AngularVelocity = 0.1f * (float)(random.NextDouble() * 2 - 1); particles.Add(particle); }
private void GenerateNewParticle() { PhysicsParticleObject particle = new PhysicsParticleObject(world, white, Color.Red, playerObj.Position, new Vector2(1f, 1f), 100f); particle.body.AngularVelocity = 0.1f * (float)(random.NextDouble() * 2 - 1); pList.Add(particle); }