{"id":221,"date":"2011-09-22T23:09:41","date_gmt":"2011-09-22T21:09:41","guid":{"rendered":"http:\/\/piflik.de\/?p=221"},"modified":"2011-09-22T23:10:47","modified_gmt":"2011-09-22T21:10:47","slug":"roadblock","status":"publish","type":"post","link":"http:\/\/piflik.de\/?p=221","title":{"rendered":"Roadblock"},"content":{"rendered":"<p>I encountered a (not so) little problem. My movement algorithm seems to be highly resistant to registering collisions. I move the objects directly and so they ignore any collider in their way. To prevent this, I would have to apply forces on the objects instead, but this would nullify all benefits from the new algorithm. Also I don&#8217;t want them to stop anywhere on the map, they should stick to the grid, so they would have to know that their destination is invalid, before they start moving or &#8211; even better &#8211; before they choose a direction.<\/p>\n<p>I tried creating a two-dimensional boolean array and assign true\/false values to each tile on the map to test against, and it kinda works, but only with predefined tiles. Setting tiles invalid during runtime doesn&#8217;t work. Maybe I am doing it wrong.<\/p>\n<p>I will try and conquer that problem later.Until I have an idea I&#8217;ll be working on other parts. Fighting, powerups, experience, some FX.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I encountered a (not so) little problem. My movement algorithm seems to be highly resistant to registering collisions. I move the objects directly and so they ignore any collider in their way. To prevent this, I would have to apply forces on the objects instead, but this would nullify all benefits from the new algorithm. [&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\/221"}],"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=221"}],"version-history":[{"count":2,"href":"http:\/\/piflik.de\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions"}],"predecessor-version":[{"id":223,"href":"http:\/\/piflik.de\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions\/223"}],"wp:attachment":[{"href":"http:\/\/piflik.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/piflik.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/piflik.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}