{"action":"created","issue":{"url":"https://api.github.com/repos/schteppe/cannon.js/issues/361","repository_url":"https://api.github.com/repos/schteppe/cannon.js","labels_url":"https://api.github.com/repos/schteppe/cannon.js/issues/361/labels{/name}","comments_url":"https://api.github.com/repos/schteppe/cannon.js/issues/361/comments","events_url":"https://api.github.com/repos/schteppe/cannon.js/issues/361/events","html_url":"https://github.com/schteppe/cannon.js/issues/361","id":298278919,"number":361,"title":"Use with ar-frame and ar.js, and world vs local","user":{"login":"labriata","id":33671553,"avatar_url":"https://avatars1.githubusercontent.com/u/33671553?v=4","gravatar_id":"","url":"https://api.github.com/users/labriata","html_url":"https://github.com/labriata","followers_url":"https://api.github.com/users/labriata/followers","following_url":"https://api.github.com/users/labriata/following{/other_user}","gists_url":"https://api.github.com/users/labriata/gists{/gist_id}","starred_url":"https://api.github.com/users/labriata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labriata/subscriptions","organizations_url":"https://api.github.com/users/labriata/orgs","repos_url":"https://api.github.com/users/labriata/repos","events_url":"https://api.github.com/users/labriata/events{/privacy}","received_events_url":"https://api.github.com/users/labriata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-19T13:41:24Z","updated_at":"2018-02-21T10:20:56Z","closed_at":null,"author_association":"NONE","body":"Hello, I'm confused about whether coordinates and vectors (forces, speeds, etc.) are treated in world frameworks, or on local frameworks.\r\n\r\nMore specifically, I'm using two augmented reality markers with ar.js. Each marker carries spheres that are dynamic bodies treated with cannon.js. Now, I want to simulate attractive or repulsive forces between pairs of spheres from different markers. Cannon.js should let me do this with applyForce, I guess.\r\n\r\nI can get the world-based coordinates of the spheres so I can compute the components of the vector forces that should act on the spheres, in the world coordinate framework. But then, how do I apply these forces on my spheres? Should I convert them to the local coordinates of the ar.js markers? Or should I apply them in world coordinates, that is without any transforms? I tried both things and multiple variations but none of the results is what I expect."},"comment":{"url":"https://api.github.com/repos/schteppe/cannon.js/issues/comments/367278540","html_url":"https://github.com/schteppe/cannon.js/issues/361#issuecomment-367278540","issue_url":"https://api.github.com/repos/schteppe/cannon.js/issues/361","id":367278540,"user":{"login":"labriata","id":33671553,"avatar_url":"https://avatars1.githubusercontent.com/u/33671553?v=4","gravatar_id":"","url":"https://api.github.com/users/labriata","html_url":"https://github.com/labriata","followers_url":"https://api.github.com/users/labriata/followers","following_url":"https://api.github.com/users/labriata/following{/other_user}","gists_url":"https://api.github.com/users/labriata/gists{/gist_id}","starred_url":"https://api.github.com/users/labriata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labriata/subscriptions","organizations_url":"https://api.github.com/users/labriata/orgs","repos_url":"https://api.github.com/users/labriata/repos","events_url":"https://api.github.com/users/labriata/events{/privacy}","received_events_url":"https://api.github.com/users/labriata/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T10:20:56Z","updated_at":"2018-02-21T10:20:56Z","author_association":"NONE","body":"Hi !! OK I will keep trying bearing in mind that in principle, cannon is operating on the world coordinates. Thanks for the info!"}}
{"actor":{"display_login":"labriata"}}