상속: Microsoft.Xna.Framework.DrawableGameComponent
예제 #1
0
        /// <summary>
        /// Constructs a new particle emitter object.
        /// </summary>
        public PointParticleEmitter(PointParticleSystem particleSystem,
                               float particlesPerSecond, Vector3 initialPosition)
        {
            this.particleSystem = particleSystem;

            timeBetweenParticles = 1.0f / particlesPerSecond;

            previousPosition = initialPosition;
        }
예제 #2
0
 internal void CreateEmitter(CONST_REACTOR_PARTICLETYPE type)
 {
     _type = type;
     if (type == CONST_REACTOR_PARTICLETYPE.Billboard)
     {
         _emitter = new BillboardParticleEmitter();
         _emitter.LoadContent();
     }
     else if (type == CONST_REACTOR_PARTICLETYPE.Point)
     {
         _psystem = new PointParticleSystem(REngine.Instance._game);
         _psystem.Initialize();
     }
 }