{"action":"created","issue":{"url":"https://api.github.com/repos/Ippo343/DangIt/issues/20","labels_url":"https://api.github.com/repos/Ippo343/DangIt/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Ippo343/DangIt/issues/20/comments","events_url":"https://api.github.com/repos/Ippo343/DangIt/issues/20/events","html_url":"https://github.com/Ippo343/DangIt/issues/20","id":37416486,"number":20,"title":"Crash influence on the part's age","user":{"login":"Ippo343","id":7579988,"avatar_url":"https://avatars.githubusercontent.com/u/7579988?v=3","gravatar_id":"","url":"https://api.github.com/users/Ippo343","html_url":"https://github.com/Ippo343","followers_url":"https://api.github.com/users/Ippo343/followers","following_url":"https://api.github.com/users/Ippo343/following{/other_user}","gists_url":"https://api.github.com/users/Ippo343/gists{/gist_id}","starred_url":"https://api.github.com/users/Ippo343/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ippo343/subscriptions","organizations_url":"https://api.github.com/users/Ippo343/orgs","repos_url":"https://api.github.com/users/Ippo343/repos","events_url":"https://api.github.com/users/Ippo343/events{/privacy}","received_events_url":"https://api.github.com/users/Ippo343/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Ippo343/DangIt/labels/feature","name":"feature","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Ippo343/DangIt/milestones/5","labels_url":"https://api.github.com/repos/Ippo343/DangIt/milestones/5/labels","id":899283,"number":5,"title":"Alpha 5.4","description":"This should fix some bugs and add some backend/immersion/realism features.","creator":{"login":"602p","id":2013596,"avatar_url":"https://avatars.githubusercontent.com/u/2013596?v=3","gravatar_id":"","url":"https://api.github.com/users/602p","html_url":"https://github.com/602p","followers_url":"https://api.github.com/users/602p/followers","following_url":"https://api.github.com/users/602p/following{/other_user}","gists_url":"https://api.github.com/users/602p/gists{/gist_id}","starred_url":"https://api.github.com/users/602p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/602p/subscriptions","organizations_url":"https://api.github.com/users/602p/orgs","repos_url":"https://api.github.com/users/602p/repos","events_url":"https://api.github.com/users/602p/events{/privacy}","received_events_url":"https://api.github.com/users/602p/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2014-12-10T18:46:31Z","updated_at":"2015-01-06T15:41:03Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2014-07-08T22:07:46Z","updated_at":"2015-01-16T09:45:09Z","closed_at":null,"body":"A collision should cause the part to age proportionally to the violence of the impact.\r\n\r\nSpecifically, I mean to increase the part's age by multiplying it by the factor:\r\n\r\n     f = 1 + (c * v / V)\r\n\r\nwhere v is the impact velocity, V the crash tolerance, and c a sensitivity factor."},"comment":{"url":"https://api.github.com/repos/Ippo343/DangIt/issues/comments/70230147","html_url":"https://github.com/Ippo343/DangIt/issues/20#issuecomment-70230147","issue_url":"https://api.github.com/repos/Ippo343/DangIt/issues/20","id":70230147,"user":{"login":"Ippo343","id":7579988,"avatar_url":"https://avatars.githubusercontent.com/u/7579988?v=3","gravatar_id":"","url":"https://api.github.com/users/Ippo343","html_url":"https://github.com/Ippo343","followers_url":"https://api.github.com/users/Ippo343/followers","following_url":"https://api.github.com/users/Ippo343/following{/other_user}","gists_url":"https://api.github.com/users/Ippo343/gists{/gist_id}","starred_url":"https://api.github.com/users/Ippo343/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ippo343/subscriptions","organizations_url":"https://api.github.com/users/Ippo343/orgs","repos_url":"https://api.github.com/users/Ippo343/repos","events_url":"https://api.github.com/users/Ippo343/events{/privacy}","received_events_url":"https://api.github.com/users/Ippo343/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T09:45:09Z","updated_at":"2015-01-16T09:45:09Z","body":"Well, a collision is a discrete event, not something that happens continuously (hopefully :P ), so there's no need to handle it in Update(): we can simply just bump the age once in `onCollisionStay`\r\n\r\n    void OnCollisionStay(Collision collision) {\r\n        this.Age += some_function_of(collision.relativeVelocity);\r\n    }\r\n\r\nAlso, judging only from the names, are you sure we don't want this to be in onCollisionEnter?\r\n\r\nSorry for being so absent, I'm working ~60 hours per week :/\r\n\r\n"}}