{"id":264,"date":"2018-06-05T16:29:22","date_gmt":"2018-06-05T21:29:22","guid":{"rendered":"http:\/\/www.chroniclesoftright.com\/blog\/?p=264"},"modified":"2018-06-05T16:29:22","modified_gmt":"2018-06-05T21:29:22","slug":"collisions-update","status":"publish","type":"post","link":"https:\/\/www.chroniclesoftright.com\/blog\/2018\/06\/05\/collisions-update\/","title":{"rendered":"Collisions update"},"content":{"rendered":"<p>I&#8217;ve been working on collision detection and I think my previous optimism from having worked on this stuff a pretty good bit before was well founded.\u00a0 So far I have implemented the simplest case of collision detection from <a href=\"http:\/\/www.peroxide.dk\/papers\/collision\/collision.pdf\" target=\"_blank\" rel=\"noopener\">this paper<\/a>.\u00a0 So with a single triangle and a sphere moving around in space the sphere stops at the surface of the triangle no matter how it is oriented.\u00a0 The sphere doesn&#8217;t react to the collision, it just stops.\u00a0 It also doesn&#8217;t work if the sphere hits an edge or vertex of the triangle.\u00a0 I just haven&#8217;t implemented that part yet.\u00a0 Still, it&#8217;s exciting to have this much done.\u00a0 The paper describes using ellipsoid space so that a single ellipsoid can represent a humanoid character.\u00a0 This is fine but I think I would rather use two equally sized spheres, one at the top of the capsule representing the player, and one at the bottom.\u00a0 This may require twice the checks, but I also don&#8217;t have to worry about world space versus ellipsoid space.\u00a0 In any case, I&#8217;m going to get sphere-mesh collisions working correctly, then I&#8217;ll decide whether to use ellipsoids or two spheres.\u00a0 I&#8217;ll have a demo of basic collision detection up soon.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working on collision detection and I think my previous optimism from having worked on this stuff a pretty good bit before was well founded.\u00a0 So far I have implemented the simplest case of collision detection from this paper.\u00a0 So with a single triangle and a sphere moving around in space the sphere stops&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-264","post","type-post","status-publish","format-standard","hentry","category-planning-and-development"],"_links":{"self":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":1,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":265,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/264\/revisions\/265"}],"wp:attachment":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}