phetsims / build-a-molecule

"Build a Molecule" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
8 stars 7 forks source link

ball and stick representation should show bond order #151

Closed arouinfar closed 4 years ago

arouinfar commented 4 years ago

Noticed during #150. The the ball and stick representation is not showing double or triple bonds. This is a deviation from Java, and is pedagogically problematic.

Example of a molecule containing a double bond image

Screen Shot 2020-01-28 at 11 29 40 AM

Example of molecule containing a triple bond. (Admittedly, this looks pretty gross in Java.) image image

Denz1994 commented 4 years ago

Great catch @arouinfar. The bonds were being created according to their bond order. However, they needed to be adjusted so the higher-order bonds would be displaced from a specific offset. What do you think about this dev version?

Here are some visuals: Single Bond image

Double Bond image

Triple Bond image

arouinfar commented 4 years ago

Looks great @Denz1994!