{"id":299,"date":"2018-06-20T22:46:16","date_gmt":"2018-06-21T03:46:16","guid":{"rendered":"http:\/\/www.chroniclesoftright.com\/blog\/?p=299"},"modified":"2018-06-20T22:46:16","modified_gmt":"2018-06-21T03:46:16","slug":"exclusion-zones","status":"publish","type":"post","link":"https:\/\/www.chroniclesoftright.com\/blog\/2018\/06\/20\/exclusion-zones\/","title":{"rendered":"Exclusion zones"},"content":{"rendered":"<p>I&#8217;ve been pretty busy the last several days so I&#8217;m just getting around to implementing this but it looks like my exclusion zones are working.\u00a0 After watching for several minutes it does not appear that the boars will walk into the cylinders surrounding the trees that were created in the map editor.\u00a0 This took some wrangling as the collision zones are actually children of the enemy spawn point itself, so getting the correct coordinates to check against took a little fiddling, but it seems to be working.\u00a0 One thing the code does\u00a0<strong>not<\/strong> do at this point is check for paths\u00a0<em>through<\/em> an exclusion zone.\u00a0 That is, if a boar tries to walk from a point outside an exclusion zone that goes through an exclusion zone but stops again outside the exclusion zone, it won&#8217;t be stopped.\u00a0 This isn&#8217;t an issue right now because the maximum distance traveled at each update is only 2 meters and the exclusion zones all have radii of about 5 meters, but eventually this will need to be improved.\u00a0 Now I need to make a small improvement to make the boars move around just a little more naturally.<\/p>\n<p>I&#8217;ve been working on some new animations for the player character so hopefully I can get those put in by this weekend and release a new version at that point.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been pretty busy the last several days so I&#8217;m just getting around to implementing this but it looks like my exclusion zones are working.\u00a0 After watching for several minutes it does not appear that the boars will walk into the cylinders surrounding the trees that were created in the map editor.\u00a0 This took some&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-299","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\/299","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=299"}],"version-history":[{"count":1,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":300,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/299\/revisions\/300"}],"wp:attachment":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/media?parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/categories?post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/tags?post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}