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

Use Composition for Ball/COM Paths #73

Closed brandonLi8 closed 4 years ago

brandonLi8 commented 4 years ago

Instead of having a base class, create a Path model for tracking the path of balls/com in #61. Currently this is achieved through polymorphism, but in hindsight, this is probably more intuitive with a composition approach.

This should not affect the result.

brandonLi8 commented 4 years ago

Done in the commits above. This gave the sim a smoother feeling from the eye test. My work here is done, closing.