コード例 #1
0
        public void Start()
        {
            //emitter.Start();
            for (int i = 0; i < 50; i++)
            {
                var p = new ColoredParticle();
                p.StartPosition = new Vector3(0, 0, 0);
                p.Color         = new Color4(1, 0, 0);
                p.Size          = 0.1f;
                p.StartVelocity = (sampler.RandomPointOnSphere() * 6).Alter(v => v.ChangeY((float)Math.Abs(v.Y)));

                p.Duration  = 1f;
                p.SpawnTime = effect.CurrentTime;


                effect.AddParticle(p);
            }
        }