/// <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; }
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(); } }