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

Add center-of-mass marker to play area #39

Closed alex-schor closed 5 years ago

alex-schor commented 5 years ago

We should control the visibility of the center of mass node by a property. The center of mass should only be visible when 2 or more balls are present. Also, perhaps add a velocity vector to COM depending on #9

alex-schor commented 5 years ago

I created a CenterOfMassNode and linked its position to the centerOfMass's position property and visibility to the centerOfMassVisibleProperty and numberOfBallsProperty. Assigning to @veillette for review.

veillette commented 5 years ago

I reviewed your work. We will node to update the JSDoc for the property, but let's track this in issue #41. Closing