{"action":"created","issue":{"url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/303","labels_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/303/comments","events_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/303/events","html_url":"https://github.com/jMonkeyEngine/jmonkeyengine/pull/303","id":95538204,"number":303,"title":"Bullet RigidBody : added support to vector3f based AngularFactor & LinearFactor","user":{"login":"Dokthar","id":6414482,"avatar_url":"https://avatars.githubusercontent.com/u/6414482?v=3","gravatar_id":"","url":"https://api.github.com/users/Dokthar","html_url":"https://github.com/Dokthar","followers_url":"https://api.github.com/users/Dokthar/followers","following_url":"https://api.github.com/users/Dokthar/following{/other_user}","gists_url":"https://api.github.com/users/Dokthar/gists{/gist_id}","starred_url":"https://api.github.com/users/Dokthar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dokthar/subscriptions","organizations_url":"https://api.github.com/users/Dokthar/orgs","repos_url":"https://api.github.com/users/Dokthar/repos","events_url":"https://api.github.com/users/Dokthar/events{/privacy}","received_events_url":"https://api.github.com/users/Dokthar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-16T21:48:19Z","updated_at":"2015-07-17T00:23:12Z","closed_at":"2015-07-16T22:04:58Z","pull_request":{"url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/pulls/303","html_url":"https://github.com/jMonkeyEngine/jmonkeyengine/pull/303","diff_url":"https://github.com/jMonkeyEngine/jmonkeyengine/pull/303.diff","patch_url":"https://github.com/jMonkeyEngine/jmonkeyengine/pull/303.patch"},"body":"This modification allow to \"lock\" a degree of freedom of one rigidBody, without joint. This ability is only available with native bullet. \r\nThis can be useful for using bullet for 2D game (maybe not the best option), this can be done like so : \r\n```java\r\nbody.setAngularFactor(new Vector3f(0,0,1)); // <-- only rotate on Z axis\r\nbody.setLinearFactor(new Vector3f(1,1,0)); // <-- only move on a 2D plane (X-Y)\r\n```\r\nYou can also set a value between [0;1] to \"reduce\" the movement / rotation. \r\nUsing angular/linear factor do not preserve the conservation of energy. (the factor only scale the \"forces\")\r\n"},"comment":{"url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/comments/122135977","html_url":"https://github.com/jMonkeyEngine/jmonkeyengine/pull/303#issuecomment-122135977","issue_url":"https://api.github.com/repos/jMonkeyEngine/jmonkeyengine/issues/303","id":122135977,"user":{"login":"empirephoenix","id":2292999,"avatar_url":"https://avatars.githubusercontent.com/u/2292999?v=3","gravatar_id":"","url":"https://api.github.com/users/empirephoenix","html_url":"https://github.com/empirephoenix","followers_url":"https://api.github.com/users/empirephoenix/followers","following_url":"https://api.github.com/users/empirephoenix/following{/other_user}","gists_url":"https://api.github.com/users/empirephoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/empirephoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/empirephoenix/subscriptions","organizations_url":"https://api.github.com/users/empirephoenix/orgs","repos_url":"https://api.github.com/users/empirephoenix/repos","events_url":"https://api.github.com/users/empirephoenix/events{/privacy}","received_events_url":"https://api.github.com/users/empirephoenix/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T00:23:12Z","updated_at":"2015-07-17T00:23:12Z","body":"Why would this break code written for jbullet? It sure would not allow code written with these two features to run on jbullet, but aside from that I see no problems."}}