{"action":"created","issue":{"url":"https://api.github.com/repos/donmccurdy/aframe-physics-system/issues/98","repository_url":"https://api.github.com/repos/donmccurdy/aframe-physics-system","labels_url":"https://api.github.com/repos/donmccurdy/aframe-physics-system/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/donmccurdy/aframe-physics-system/issues/98/comments","events_url":"https://api.github.com/repos/donmccurdy/aframe-physics-system/issues/98/events","html_url":"https://github.com/donmccurdy/aframe-physics-system/issues/98","id":327167503,"number":98,"title":"Changing gravity dynamically","user":{"login":"roloow","id":7252987,"avatar_url":"https://avatars1.githubusercontent.com/u/7252987?v=4","gravatar_id":"","url":"https://api.github.com/users/roloow","html_url":"https://github.com/roloow","followers_url":"https://api.github.com/users/roloow/followers","following_url":"https://api.github.com/users/roloow/following{/other_user}","gists_url":"https://api.github.com/users/roloow/gists{/gist_id}","starred_url":"https://api.github.com/users/roloow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roloow/subscriptions","organizations_url":"https://api.github.com/users/roloow/orgs","repos_url":"https://api.github.com/users/roloow/repos","events_url":"https://api.github.com/users/roloow/events{/privacy}","received_events_url":"https://api.github.com/users/roloow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-29T04:38:05Z","updated_at":"2018-05-29T04:51:53Z","closed_at":null,"author_association":"NONE","body":"Hi, I'm currently having some problems trying to change the gravity in my app.\r\n\r\nFor now, I have 3 separeted *.html* with 3 different values of *gravity*, however since I need to be able to **stay** in VR mode and there is no support for doing it automaticly, I have to forget the idea of using link.\r\n\r\nSo.. I was grouping the code in different entities making them visible when I needed so, however, in that change of visibility I need to change the gravity. This code doesn't work by the way:\r\n\r\n```\r\ndocument.querySelector('a-scene').setAttribute('physics', 'gravity: -1.62');\r\n```\r\n\r\nAny help, in order to work this around will be appreciated."},"comment":{"url":"https://api.github.com/repos/donmccurdy/aframe-physics-system/issues/comments/392652183","html_url":"https://github.com/donmccurdy/aframe-physics-system/issues/98#issuecomment-392652183","issue_url":"https://api.github.com/repos/donmccurdy/aframe-physics-system/issues/98","id":392652183,"user":{"login":"donmccurdy","id":1848368,"avatar_url":"https://avatars3.githubusercontent.com/u/1848368?v=4","gravatar_id":"","url":"https://api.github.com/users/donmccurdy","html_url":"https://github.com/donmccurdy","followers_url":"https://api.github.com/users/donmccurdy/followers","following_url":"https://api.github.com/users/donmccurdy/following{/other_user}","gists_url":"https://api.github.com/users/donmccurdy/gists{/gist_id}","starred_url":"https://api.github.com/users/donmccurdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donmccurdy/subscriptions","organizations_url":"https://api.github.com/users/donmccurdy/orgs","repos_url":"https://api.github.com/users/donmccurdy/repos","events_url":"https://api.github.com/users/donmccurdy/events{/privacy}","received_events_url":"https://api.github.com/users/donmccurdy/received_events","type":"User","site_admin":false},"created_at":"2018-05-29T04:51:53Z","updated_at":"2018-05-29T04:51:53Z","author_association":"OWNER","body":"Related to https://github.com/aframevr/aframe/issues/2612 and https://github.com/aframevr/aframe/issues/3254, A-Frame systems cannot be altered at runtime. You can hack around this — only with physics running locally, not in a worker — by calling:\r\n\r\n```js\r\nsceneEl.systems.physics.driver.world.gravity.y = 0;\r\n```"}}
{"actor":{"display_login":"donmccurdy"}}