예제 #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);
 }