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

Need an easy way to get the array of all current ball position values for what’s visible in the scene #259

Closed
matthew-blackman opened this issue Jun 13, 2023 · 4 comments

Comments

@matthew-blackman
Copy link
Contributor

Summary: This should be a method in the scene like in CCK.

@samreid
Copy link
Member

samreid commented Jun 21, 2023

await phetioClient.invokeAsync('centerAndVariability.medianScreen.model.sceneModel','getDataPoints',[]);

@samreid
Copy link
Member

samreid commented Jun 21, 2023

I also added an adapter that you can get/set the data for the currently selected scene in a model. Tested via await phetioClient.invokeAsync('centerAndVariability.variabilityScreen.model','getDataPoints',[]); in the variability screen.

@samreid
Copy link
Member

samreid commented Jun 21, 2023

This should be documented in the examples guide. Let's review it with the design team at an upcoming post-standup.

@catherinecarter
Copy link
Contributor

Closing, will reference when the examples.md document gets created. Will copy the code above and explain how to get/set an array of ball locations.

@catherinecarter catherinecarter removed their assignment Jun 26, 2023
marlitas pushed a commit to phetsims/soccer-common that referenced this issue Aug 3, 2023
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

3 participants