phetsims / projectile-motion

"Projectile Motion" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
15 stars 13 forks source link

Explain and improve model.trajectoryGroup in studio #223

Closed zepumph closed 3 years ago

zepumph commented 4 years ago

From https://github.com/phetsims/projectile-motion/issues/219, @arouinfar had a review comment like:

The projectileMotion.introScreen.model.trajectoryGroup is a bit hard to understand. Could you walk us through it?

Yes it is a bit weird. Basically every blue line is a trajectory, and when you fire multiple projectiles on the same trajectory, then it doesn't create a new Trajectory group member. Instead information about individual projectiles are housed in the nested projectileObjects element.

Potential pain points, confusions, and improvements:

arouinfar commented 3 years ago

Discussed with @kathy-phet and @zepumph as a part of #244 and change requests are logged in #241 #242 and #243.