{"id":7308,"date":"2018-09-09T20:23:07","date_gmt":"2018-09-09T19:23:07","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=7308"},"modified":"2018-09-09T20:23:07","modified_gmt":"2018-09-09T19:23:07","slug":"p0-a2-part-438-procedural-structure-generator","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p0-a2-part-438-procedural-structure-generator\/","title":{"rendered":"P0-A2: Part 438: Procedural Structure Generator"},"content":{"rendered":"<p>I have added the ability to randomly generate more complex structures, etc, to the random generator.<\/p>\n<p>The issue now is collision detection. I can create and place simple 2D objects reasonably well, and the overall shape of the structure should look ok if I add 3D interiors instead of 2d objects.<\/p>\n<p>The problem is that despite several attempts at collision detection, I still can&#8217;t reliably position objects so that they don&#8217;t intersect.<\/p>\n<p><figure id=\"attachment_7302\" aria-describedby=\"caption-attachment-7302\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-7302\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM-300x163.jpg\" alt=\"Unity 09\/09\/2018 , 06:56:50 PM Unity 2018.1.0f2 Personal (64bit) - [PREVIEW PACKAGES IN USE] - P0Main55.unity - P0-A1 - PC, Mac &amp; Linux Standalone* \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-7302\" class=\"wp-caption-text\">Unity<br \/>09\/09\/2018 , 06:56:50 PM<br \/>Unity 2018.1.0f2 Personal (64bit) &#8211; [PREVIEW PACKAGES IN USE] &#8211; P0Main55.unity &#8211; P0-A1 &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure><figure id=\"attachment_7301\" aria-describedby=\"caption-attachment-7301\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_57_24-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-7301\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_57_24-PM-300x163.jpg\" alt=\"Unity 09\/09\/2018 , 06:57:24 PM Unity 2018.1.0f2 Personal (64bit) - [PREVIEW PACKAGES IN USE] - P0Main55.unity - P0-A1 - PC, Mac &amp; Linux Standalone* \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_57_24-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_57_24-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_57_24-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_57_24-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-7301\" class=\"wp-caption-text\">Unity<br \/>09\/09\/2018 , 06:57:24 PM<br \/>Unity 2018.1.0f2 Personal (64bit) &#8211; [PREVIEW PACKAGES IN USE] &#8211; P0Main55.unity &#8211; P0-A1 &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure><figure id=\"attachment_7299\" aria-describedby=\"caption-attachment-7299\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM-002.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-7299\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM-002-300x163.jpg\" alt=\"Unity 09\/09\/2018 , 06:56:50 PM Unity 2018.1.0f2 Personal (64bit) - [PREVIEW PACKAGES IN USE] - P0Main55.unity - P0-A1 - PC, Mac &amp; Linux Standalone* \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM-002-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM-002-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM-002-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2018\/09\/PhoenixGameDevelopment-09_09_2018-06_56_50-PM-002.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-7299\" class=\"wp-caption-text\">Unity<br \/>09\/09\/2018 , 06:56:50 PM<br \/>Unity 2018.1.0f2 Personal (64bit) &#8211; [PREVIEW PACKAGES IN USE] &#8211; P0Main55.unity &#8211; P0-A1 &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have added the ability to randomly generate more complex structures, etc, to the random generator. The issue now is collision detection. I can create and place simple 2D objects reasonably well, and the overall shape of the structure should look ok if I add 3D interiors instead of 2d objects. The problem is that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,17,10,11],"tags":[],"class_list":["post-7308","post","type-post","status-publish","format-standard","hentry","category-astral-realms","category-p-0","category-software-and-games","category-spiritus-astrum","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/7308"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=7308"}],"version-history":[{"count":1,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/7308\/revisions"}],"predecessor-version":[{"id":7309,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/7308\/revisions\/7309"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=7308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=7308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=7308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}