{"action":"closed","issue":{"url":"https://api.github.com/repos/liabru/matter-js/issues/143","labels_url":"https://api.github.com/repos/liabru/matter-js/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/liabru/matter-js/issues/143/comments","events_url":"https://api.github.com/repos/liabru/matter-js/issues/143/events","html_url":"https://github.com/liabru/matter-js/issues/143","id":103185943,"number":143,"title":"how to reset everything?","user":{"login":"evanthebouncy","id":1041553,"avatar_url":"https://avatars.githubusercontent.com/u/1041553?v=3","gravatar_id":"","url":"https://api.github.com/users/evanthebouncy","html_url":"https://github.com/evanthebouncy","followers_url":"https://api.github.com/users/evanthebouncy/followers","following_url":"https://api.github.com/users/evanthebouncy/following{/other_user}","gists_url":"https://api.github.com/users/evanthebouncy/gists{/gist_id}","starred_url":"https://api.github.com/users/evanthebouncy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evanthebouncy/subscriptions","organizations_url":"https://api.github.com/users/evanthebouncy/orgs","repos_url":"https://api.github.com/users/evanthebouncy/repos","events_url":"https://api.github.com/users/evanthebouncy/events{/privacy}","received_events_url":"https://api.github.com/users/evanthebouncy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-26T06:23:34Z","updated_at":"2015-08-27T19:17:50Z","closed_at":"2015-08-27T19:17:50Z","body":"I'm writing a simulation for an AI project that involves learning. To enable learning, I need to re-start the simulation over and over, with slightly different body configurations. Is there a way of destroying the old engine instance and re-create a new engine instance from scratch?\r\n\r\ncalling   \r\nengine = Engine.create(document.getElementById('canvas-container'));\r\nkeeps on adding new engines / renderers without removing the old one."}}