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

addObject() not working #38

Open
migbash opened this issue Dec 1, 2020 · 2 comments
Open

addObject() not working #38

migbash opened this issue Dec 1, 2020 · 2 comments

Comments

@migbash
Copy link

migbash commented Dec 1, 2020

I have an spaceObject that I store in an array[ ] of spaceObjects, which I use the remove from the simulation upon a button click, an then make the spaceObjects reappear on another button click using the array of spaceObjects and it does not work at all :/

@typpo
Copy link
Owner

typpo commented Dec 1, 2020

hmm, is there any chance you can provide a jsfiddle as an example?

@migbash
Copy link
Author

migbash commented Dec 24, 2020

Yes, so when I try to remove some SpaceObjects() from the Simulation, and then add the same SpaceObjects back in, they do not work. I got them to work by re-creating the createObject() all over again, which I used as a quick hack.

image

, where target_sat contains the SpaceObject object data, & viz is a global defined simulation variable.

And using the viz.addObject() with a SpaceObject object, does not seem to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants