{"action":"created","issue":{"url":"https://api.github.com/repos/schteppe/cannon.js/issues/302","repository_url":"https://api.github.com/repos/schteppe/cannon.js","labels_url":"https://api.github.com/repos/schteppe/cannon.js/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/schteppe/cannon.js/issues/302/comments","events_url":"https://api.github.com/repos/schteppe/cannon.js/issues/302/events","html_url":"https://github.com/schteppe/cannon.js/issues/302","id":175922726,"number":302,"title":"Heightfield > Player > Velocity","user":{"login":"digitaledge","id":3514563,"avatar_url":"https://avatars.githubusercontent.com/u/3514563?v=3","gravatar_id":"","url":"https://api.github.com/users/digitaledge","html_url":"https://github.com/digitaledge","followers_url":"https://api.github.com/users/digitaledge/followers","following_url":"https://api.github.com/users/digitaledge/following{/other_user}","gists_url":"https://api.github.com/users/digitaledge/gists{/gist_id}","starred_url":"https://api.github.com/users/digitaledge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitaledge/subscriptions","organizations_url":"https://api.github.com/users/digitaledge/orgs","repos_url":"https://api.github.com/users/digitaledge/repos","events_url":"https://api.github.com/users/digitaledge/events{/privacy}","received_events_url":"https://api.github.com/users/digitaledge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-09T03:58:47Z","updated_at":"2016-09-09T13:06:41Z","closed_at":null,"body":"Hello again,\r\n\r\nfinally i finished some character controller using cannon.js.\r\nProblem is that i cant get the character to stop sliding on the heightfield.\r\n\r\nI did add a contactmaterial like in the given example:\r\n`this.playerMaterial_cm = new CANNON.ContactMaterial(this.playerMaterial, this.playerMaterial, {\r\n            friction: 0.6,\r\n            restitution: 0.1,\r\n            contactEquationStiffness: 1e8,\r\n            contactEquationRelaxation: 3,\r\n            frictionEquationStiffness: 1e8,\r\n            frictionEquationRegularizationTime: 3\r\n        });`\r\n\r\nthis.playerMaterial is used for the heightfield and player body.\r\n\r\nMy world settings is:\r\n`    this.world.gravity = new CANNON.Vec3(0, -9.8, 0);\r\n        this.world.broadphase = new CANNON.NaiveBroadphase();\r\n        this.world.solver.iterations = 20;\r\n        this.world.solver.tolerance = 0;`\r\n\r\nThe player body has a mass of 5.\r\nWhen its set like this.body.velocity.set(0, this.body.velocity.y, 0), velocity.y is never zero.\r\n\r\nAny idea what i am missing?\r\n\r\nRegards\r\nStefan\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/schteppe/cannon.js/issues/comments/245907221","html_url":"https://github.com/schteppe/cannon.js/issues/302#issuecomment-245907221","issue_url":"https://api.github.com/repos/schteppe/cannon.js/issues/302","id":245907221,"user":{"login":"digitaledge","id":3514563,"avatar_url":"https://avatars.githubusercontent.com/u/3514563?v=3","gravatar_id":"","url":"https://api.github.com/users/digitaledge","html_url":"https://github.com/digitaledge","followers_url":"https://api.github.com/users/digitaledge/followers","following_url":"https://api.github.com/users/digitaledge/following{/other_user}","gists_url":"https://api.github.com/users/digitaledge/gists{/gist_id}","starred_url":"https://api.github.com/users/digitaledge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitaledge/subscriptions","organizations_url":"https://api.github.com/users/digitaledge/orgs","repos_url":"https://api.github.com/users/digitaledge/repos","events_url":"https://api.github.com/users/digitaledge/events{/privacy}","received_events_url":"https://api.github.com/users/digitaledge/received_events","type":"User","site_admin":false},"created_at":"2016-09-09T13:06:41Z","updated_at":"2016-09-09T13:06:41Z","body":"Hum it seems like friction does not take any effect.\r\nIs that maybe because i am running cannon on node,js?"}}
{"actor":{"display_login":"digitaledge"}}