phetsims / collision-lab

"Collision Lab" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
6 stars 4 forks source link

Balls tunnel through each other and then collide with phantom ball #188

Closed arouinfar closed 3 years ago

arouinfar commented 3 years ago

Observed in master, and likely introduced in #184

  1. Intro screen
  2. Press play
  3. Before the balls collide, change elasticity (value irrelevant)
  4. Balls tunnel through one another, but shortly after will change their speed/momentum as though they collided with the other ball. tunneling
jonathanolson commented 3 years ago

Investigating. The commit for that issue ONLY affects the Explore 1D screen, but I have a vague idea what might be happening.

jonathanolson commented 3 years ago

Thanks for finding that! I believe I've fixed it in the above commit, can you verify?

arouinfar commented 3 years ago

Thanks @jonathanolson! I'm unable to reproduce in master.