phetsims / molecules-and-light

"Molecules and Light" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
2 stars 5 forks source link

Possible to emit endless stream of photons #329

Closed jessegreenberg closed 4 years ago

jessegreenberg commented 4 years ago

Mentioned by @BLFiedler in https://github.com/phetsims/molecules-and-light/issues/327. Since the delay of photon emission was removed in https://github.com/phetsims/molecules-and-light/issues/322 it is possible to emit an endless stream of photons. Press and hold the enter key on the photon emitter button to observe.

image

I made this by having the sim paused, then repeatedly stepping forward after toggling the light source on and off.

jessegreenberg commented 4 years ago

OK, should be fixed. The emission countdown timer is only reset when there are no other photons in the observation window.