{"id":295,"date":"2018-06-16T00:17:44","date_gmt":"2018-06-16T05:17:44","guid":{"rendered":"http:\/\/www.chroniclesoftright.com\/blog\/?p=295"},"modified":"2018-06-16T00:17:44","modified_gmt":"2018-06-16T05:17:44","slug":"editor-improvements-3","status":"publish","type":"post","link":"https:\/\/www.chroniclesoftright.com\/blog\/2018\/06\/16\/editor-improvements-3\/","title":{"rendered":"Editor improvements"},"content":{"rendered":"<p>I&#8217;ve been working on exclusion zones in the world editor and this is what I have so far:<\/p>\n<p><a href=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/06\/LyridiaEditor-2018.06.16.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-296\" src=\"http:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/06\/LyridiaEditor-2018.06.16-300x151.png\" alt=\"\" width=\"300\" height=\"151\" srcset=\"https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/06\/LyridiaEditor-2018.06.16-300x151.png 300w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/06\/LyridiaEditor-2018.06.16-768x387.png 768w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/06\/LyridiaEditor-2018.06.16-1024x516.png 1024w, https:\/\/www.chroniclesoftright.com\/blog\/wp-content\/uploads\/2018\/06\/LyridiaEditor-2018.06.16.png 1919w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Right, what is this?\u00a0 This is Penrith Forest a little away from the farmhouse in among some big trees.\u00a0 Near the middle of the screen you can see a tiny little boar.\u00a0 It only looks small because the camera is pretty high up.\u00a0 That boar is the center of the yellow cylinder and that represents a wandering zone for the enemy at the center, in this case a boar.\u00a0 Eventually I&#8217;ll need to configure how many enemies to keep in the zone, but not now.\u00a0 The blue cylinders are intended to be &#8220;exclusion zones&#8221; where the boars will not walk.\u00a0 This is computationally less expensive than having the boars move around with standard collision detection turned on.\u00a0 You can imagine that it&#8217;s really easy to determine whether a point or path is within one large circle and not within a few smaller circles.\u00a0 Since I need to control movement only in a very general way it make sense to do it the cheap way.\u00a0 Of course, this is more work on the front end.\u00a0 I have to actually define each of these zones but as long as the tools in the world editor work ok it&#8217;s not too bad.<\/p>\n<p>Next I&#8217;ll need to update the server code so that boars won&#8217;t walk into or through an exclusion zone.\u00a0 That should be fairly simple, I hope.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working on exclusion zones in the world editor and this is what I have so far: Right, what is this?\u00a0 This is Penrith Forest a little away from the farmhouse in among some big trees.\u00a0 Near the middle of the screen you can see a tiny little boar.\u00a0 It only looks small because&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-295","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\/295","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=295"}],"version-history":[{"count":1,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/295\/revisions"}],"predecessor-version":[{"id":297,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/posts\/295\/revisions\/297"}],"wp:attachment":[{"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/media?parent=295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/categories?post=295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chroniclesoftright.com\/blog\/wp-json\/wp\/v2\/tags?post=295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}