{"action":"created","issue":{"url":"https://api.github.com/repos/liabru/matter-js/issues/108","labels_url":"https://api.github.com/repos/liabru/matter-js/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/liabru/matter-js/issues/108/comments","events_url":"https://api.github.com/repos/liabru/matter-js/issues/108/events","html_url":"https://github.com/liabru/matter-js/pull/108","id":91639762,"number":108,"title":"Made it optional to orient a body around its center of mass","user":{"login":"acasaccia","id":207331,"avatar_url":"https://avatars.githubusercontent.com/u/207331?v=3","gravatar_id":"","url":"https://api.github.com/users/acasaccia","html_url":"https://github.com/acasaccia","followers_url":"https://api.github.com/users/acasaccia/followers","following_url":"https://api.github.com/users/acasaccia/following{/other_user}","gists_url":"https://api.github.com/users/acasaccia/gists{/gist_id}","starred_url":"https://api.github.com/users/acasaccia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acasaccia/subscriptions","organizations_url":"https://api.github.com/users/acasaccia/orgs","repos_url":"https://api.github.com/users/acasaccia/repos","events_url":"https://api.github.com/users/acasaccia/events{/privacy}","received_events_url":"https://api.github.com/users/acasaccia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-28T21:07:25Z","updated_at":"2015-07-05T15:16:55Z","closed_at":"2015-07-05T14:34:03Z","pull_request":{"url":"https://api.github.com/repos/liabru/matter-js/pulls/108","html_url":"https://github.com/liabru/matter-js/pull/108","diff_url":"https://github.com/liabru/matter-js/pull/108.diff","patch_url":"https://github.com/liabru/matter-js/pull/108.patch"},"body":"For an application of mine I wanted to randomly build a 2D terrain, made up by some trapezoids, one next to another. Because the bodies got automatically translated around their center of mass, it wasn't straightforward to achieve that.\r\n\r\n![terrain](https://cloud.githubusercontent.com/assets/207331/8398333/f4e13aae-1de1-11e5-96b1-141968f3cb34.png)\r\n\r\n\r\nI was finally able to do it making optional to orient bodies around their center of mass, so that I could just position them at my will. I couldn't see any side effects. Let me know if there was a better way to do it, or feel free to integrate this if you think it could be useful to others."},"comment":{"url":"https://api.github.com/repos/liabru/matter-js/issues/comments/118631736","html_url":"https://github.com/liabru/matter-js/pull/108#issuecomment-118631736","issue_url":"https://api.github.com/repos/liabru/matter-js/issues/108","id":118631736,"user":{"login":"liabru","id":654420,"avatar_url":"https://avatars.githubusercontent.com/u/654420?v=3","gravatar_id":"","url":"https://api.github.com/users/liabru","html_url":"https://github.com/liabru","followers_url":"https://api.github.com/users/liabru/followers","following_url":"https://api.github.com/users/liabru/following{/other_user}","gists_url":"https://api.github.com/users/liabru/gists{/gist_id}","starred_url":"https://api.github.com/users/liabru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liabru/subscriptions","organizations_url":"https://api.github.com/users/liabru/orgs","repos_url":"https://api.github.com/users/liabru/repos","events_url":"https://api.github.com/users/liabru/events{/privacy}","received_events_url":"https://api.github.com/users/liabru/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T15:16:55Z","updated_at":"2015-07-05T15:16:55Z","body":"Thanks for raising this, sorry for the delayed response - I like the idea but I'm considering implementing it in a slightly different way, I'll update this when I decide how to do it. Cheers!"}}