Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use EnergySkateParkBasicsModel.addTrack more broadly #165

Closed
jessegreenberg opened this issue Feb 23, 2018 · 9 comments
Closed

Use EnergySkateParkBasicsModel.addTrack more broadly #165

jessegreenberg opened this issue Feb 23, 2018 · 9 comments

Comments

@jessegreenberg
Copy link
Contributor

From a TODO:

    /**
     * Add a track, called by phet-io in setState (to restore a state).
     * TODO: this code should be called by EnergySkateParkBasicsModel too.
     * @param {Tandem} tandem
     * @param {boolean} interactive - whether the track can be dragged.
     * @param controlPointTandemIDs
     */
    addTrack: function( tandem, interactive, controlPointTandemIDs ) {

@samreid do you still believe this TODO still applies?

@samreid
Copy link
Member

samreid commented Feb 23, 2018

I think it is worth investigation, thought it may not pan out. I don't see a quick way to solve this, it will probably involve experimentation/investigation and would require specifying the control point indices as arguments to the function (though that's unclear how it will work with PhET-iO where the control point locations are set separately).

@jessegreenberg how do you recommend to proceed?

@samreid samreid assigned jessegreenberg and unassigned samreid Feb 23, 2018
@jessegreenberg
Copy link
Contributor Author

I see, thanks. Ill take a look.

@samreid
Copy link
Member

samreid commented Feb 23, 2018

Thanks, and good luck. You can use the phet-io "state" wrapper to exercise addTrack.

@jessegreenberg
Copy link
Contributor Author

Moving to energy-skate-park now, I had forgotten about this and will work on it now.

@jessegreenberg jessegreenberg transferred this issue from phetsims/energy-skate-park-basics Dec 19, 2019
@samreid
Copy link
Member

samreid commented Dec 19, 2019

PhetioGroup should be used for this part. Are you preparing for phet-io and phet brand publication for the new sim, or only PhET-brand?

@jessegreenberg
Copy link
Contributor Author

Only PhET brand - should this wait until a PhET-iO publication?

@samreid
Copy link
Member

samreid commented Dec 24, 2019

I think this sim should be changed to use PhetioGroup when it is time to instrument the sim, or when we eliminate the legacy pattern as part of phetsims/tandem#87

@samreid samreid assigned jessegreenberg and unassigned samreid Dec 24, 2019
@jessegreenberg
Copy link
Contributor Author

OK thanks, in that case this issue can be picked up at that point.

@samreid
Copy link
Member

samreid commented Jan 24, 2021

I deleted this method, and we will continue with the pattern established in #123

@samreid samreid closed this as completed Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants