You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I've been experimenting with saving and loading world configurations and noticed something I thought seemed odd. When a configuration is saved to local storage (by clicking the save button on the generated GUI from matter-tools.gui.js) and then loaded again, the bodies no longer respond to changes in either x or y components of gravity.
I think it's because loading a new world also loads the original gravity settings, while the GUI maintains the reference to the previous world's gravity object, which is no longer used by the engine so changing it has no effect.
I'd say to log an issue on matter-tools about this, but don't because the GUI no longer includes the world save / load feature (though, I plan to add it to MatterTools.Demo eventually).
It's helpful for debugging and testing. It's not quite a world editor yet but I'd like it to be. I took the loading and saving out from the tool because it needed more work to be compatible with plugins. But the code still exists if you want to use it, check out MatterTools.Serializer.
Hi! I've been experimenting with saving and loading world configurations and noticed something I thought seemed odd. When a configuration is saved to local storage (by clicking the save button on the generated GUI from matter-tools.gui.js) and then loaded again, the bodies no longer respond to changes in either x or y components of gravity.
I can also reproduce this issue on the demo page (http://brm.io/matter-js/demo/).
Any idea what's going on?
Thanks in advance!
The text was updated successfully, but these errors were encountered: