phetsims / gravity-and-orbits

"Gravity And Orbits" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
12 stars 6 forks source link

standard wrapper doesn't show path when launched #455

Closed Nancy-Salpepi closed 1 year ago

Nancy-Salpepi commented 1 year ago

Test device MacBook Air (m1 chip)

Operating System macOS 12.6

Browser safari and chrome

Problem description For https://github.com/phetsims/qa/issues/838, when the sim is launched from studio the planet/moon/satellite are in the correct position in the standard wrapper, but the path that was previously taken is missing. Seems similar to what was reported back in https://github.com/phetsims/gravity-and-orbits/issues/335.

Steps to reproduce

  1. Pick a scene on either screen
  2. Check the path checkbox
  3. press Play
  4. after the planet/moon/satellite has moved a bit, press Pause
  5. press Test button

Visuals In studio:

Screen Shot 2022-09-29 at 9 32 13 AM

In standard wrapper:

Screen Shot 2022-09-29 at 9 32 47 AM
KatieWoe commented 1 year ago

Oddly, it will appear in the launched sim if you hit the scene reset button.

Nancy-Salpepi commented 1 year ago

@samreid I just wanted to confirm the behavior of the Restart button in this case: After following the above steps, and then pressing play, pressing the Restart button erases the path (Pressing Reset or Reset All buttons return the path the screen).

samreid commented 1 year ago

That sounds correct to me, because the Reset scene or Reset all is meant to restore the initial PhET-iO State. But the Restart button is supposed to go back to the initial conditions for the last experiment, which would have path lengths of zero.

Nancy-Salpepi commented 1 year ago

Great! Then this can be closed!