public ParticleSystem(ParticleEmitter particleEmitter, ParticleFactory particleFactory, Camera activeCamera, bool endlessLife, float emitterLife, int maxParticles) { this.particleEmitter = particleEmitter; this.particleFactory = particleFactory; this.endlessLife = endlessLife; this.emitterLife = defaultEmitterLife = emitterLife; this.maxParticles = maxParticles; listParticles = new List<Particle>(maxParticles); listCollisionSurfaces = new List<CollisionSurface>(); listManipulators = new List<Manipulator>(); this.activeCamera = activeCamera; boundingSphere = new Sphere(particleEmitter.getPosition(), particleFactory.getRange()); }
public ParticleSystem(ParticleEmitter particleEmitter, ParticleFactory particleFactory, Camera activeCamera, bool endlessLife, float emitterLife, int maxParticles) { this.particleEmitter = particleEmitter; this.particleFactory = particleFactory; this.endlessLife = endlessLife; this.emitterLife = defaultEmitterLife = emitterLife; this.maxParticles = maxParticles; listParticles = new List <Particle>(maxParticles); listCollisionSurfaces = new List <CollisionSurface>(); listManipulators = new List <Manipulator>(); this.activeCamera = activeCamera; boundingSphere = new Sphere(particleEmitter.getPosition(), particleFactory.getRange()); }