phetsims / molecule-polarity

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

Hint arrows change direction on Atom B of triatomic molecule #95

Closed pixelzoom closed 3 years ago

pixelzoom commented 3 years ago

Something odd I noticed while testing something else, easiest to describe by example:

  1. Start the sim, go to Three Atoms screen
  2. Set electronegativity slider for Atom B to "less", the lowest setting.
  3. Note that the green 'hint arrow' on Atom B change direction.

I'm not sure if this is a feature or a bug, will investigate.

pixelzoom commented 3 years ago

This was definitely not a feature, just a bit of matrix multiplication weirdness that was happening when the molecular dipole angle was zero. Fixed in the above commit, no need for review, closing.