コード例 #1
0
        public void CreateRockExplosion(Vector3 position, Vector3 velocity)
        {
            velocity.Normalize();

            for (int i = 0; i < 256; i++)
            {
                rockExplosionFire.AddParticle(position, velocity);
            }

            for (int i = 0; i < 128; i++)
            {
                rockExplosionSparks.AddParticle(position, Vector3.Zero);
            }

            for (int i = 0; i < 64; i++)
            {
                rockExplosionSmoke.AddParticle(position, Vector3.Zero);
            }
        }