{"id":244,"date":"2011-09-28T01:44:05","date_gmt":"2011-09-27T23:44:05","guid":{"rendered":"http:\/\/piflik.de\/?p=244"},"modified":"2011-12-23T01:28:10","modified_gmt":"2011-12-23T00:28:10","slug":"interlude-collision-problem-solved","status":"publish","type":"post","link":"http:\/\/piflik.de\/?p=244","title":{"rendered":"Interlude: Collision Problem Solved"},"content":{"rendered":"<p>Partly thanks to the guys and gals at <a title=\"Answers.Unity3D.com\" href=\"http:\/\/Answers.Unity3D.com\">Answers.Unity3D.com<\/a>, I solved the problem I had with the collision detection. It is essentially the same approach I already tried, twice, but apparently now I did it correctly. I have a two-dimensional array, in which every actor in the scene stores their position, and if a tile is occupied, no other actor can move onto it. When an actor leaves a tile, it is set to unoccupied again. I also used this array to create a boundary around the game world to keep the player and the enemies on it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Partly thanks to the guys and gals at Answers.Unity3D.com, I solved the problem I had with the collision detection. It is essentially the same approach I already tried, twice, but apparently now I did it correctly. I have a two-dimensional array, in which every actor in the scene stores their position, and if a tile [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,13,12,14],"tags":[],"_links":{"self":[{"href":"http:\/\/piflik.de\/index.php?rest_route=\/wp\/v2\/posts\/244"}],"collection":[{"href":"http:\/\/piflik.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/piflik.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/piflik.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/piflik.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=244"}],"version-history":[{"count":4,"href":"http:\/\/piflik.de\/index.php?rest_route=\/wp\/v2\/posts\/244\/revisions"}],"predecessor-version":[{"id":284,"href":"http:\/\/piflik.de\/index.php?rest_route=\/wp\/v2\/posts\/244\/revisions\/284"}],"wp:attachment":[{"href":"http:\/\/piflik.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/piflik.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/piflik.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}