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