示例#1
0
 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);
 }
示例#2
0
文件: Game1.cs 项目: goodSAP/goodSAP
 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);
 }