Exemple #1
0
        public SSPeriodicExplosiveForceEffector()
        {
            _adsr              = new LinearADSREnvelope();
            _adsr.peakLevel    = 1f;
            _adsr.sustainLevel = 0.5f;

            _adsr.attackDuration  = 0.01f;
            _adsr.decayDuration   = 0.01f;
            _adsr.sustainDuration = 0.05f;
            _adsr.releaseDuration = 0.01f;
        }
Exemple #2
0
        public SLaser(SLaserParameters laserParams, TargetVelFunc targetVelFunc=null)
        {
            this.parameters = laserParams;
            this._localIntensityEnvelope = laserParams.intensityEnvelope.Clone();
            this.targetVelFunc = targetVelFunc;

            _beams = new SLaserBeam[parameters.numBeams];
            for (int i = 0; i < parameters.numBeams; ++i) {
                _beams[i] = new SLaserBeam(this, i);
            }
        }
Exemple #3
0
        public SLaser(SLaserParameters laserParams, TargetVelFunc targetVelFunc = null)
        {
            this.parameters = laserParams;
            this._localIntensityEnvelope = laserParams.intensityEnvelope.Clone();
            this.targetVelFunc           = targetVelFunc;

            _beams = new SLaserBeam[parameters.numBeams];
            for (int i = 0; i < parameters.numBeams; ++i)
            {
                _beams[i] = new SLaserBeam(this, i);
            }
        }