コード例 #1
0
ファイル: ParticleSystem.cs プロジェクト: hyyly/teslagame
        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());
        }
コード例 #2
0
ファイル: ParticleSystem.cs プロジェクト: topfs2/teslagame
        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());
        }