phetsims / pendulum-lab

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

Add friction property to PendulumLabModel #58

Closed jonathanolson closed 9 years ago

jonathanolson commented 9 years ago

It seems cleaner to add a friction property to the base model that is always 0 for the first screen, than it is to add custom properties to other screen's models.

In addition, this can remove the cast in PendulumLabModel where this.friction || 0 is used.

See #56.

andrey-zelenkov commented 9 years ago

friction property added to PendulumLabModel. Reassign to @jonathanolson for verification.

jonathanolson commented 9 years ago

Looks great, thanks!