{"id":4264,"date":"2016-11-27T23:43:38","date_gmt":"2016-11-27T23:43:38","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=4264"},"modified":"2016-12-04T23:18:12","modified_gmt":"2016-12-04T23:18:12","slug":"p-172-unitp0-p-172-part-51-terrain-textures-ai-pathfinding","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p-172-unitp0-p-172-part-51-terrain-textures-ai-pathfinding\/","title":{"rendered":"P0-P-172: Part 51: Terrain Textures, Ai pathfinding"},"content":{"rendered":"<p>I have added the new ai pathfinding code to the project. This took longer than I thought, since I needed to essentially include two ai navigation solutions: one (the Unity Navmesh) for when the ai&#8217;s destination is within a navmesh, and another for when the ai is outside the navmesh.<\/p>\n<p>It is not possible to create dynamic navmeshes yet. For this reason, I will eventually need to replace the Unity navmesh with some kind of dynamic navigation system, possibly A*.<\/p>\n<p>I have also figured out that it is possible to add a distinct texture to each chunk of the SEE terrain. This may mean that adding multiple terrain textures won&#8217;t be as difficult as I thought.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_4265\" aria-describedby=\"caption-attachment-4265\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_07-PM-002.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4265\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_07-PM-002-300x163.jpg\" alt=\"Unity 22\/11\/2016 , 11:39:07 PM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_07-PM-002-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_07-PM-002-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_07-PM-002-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_07-PM-002.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4265\" class=\"wp-caption-text\">Unity<br \/>22\/11\/2016 , 11:39:07 PM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4266\" aria-describedby=\"caption-attachment-4266\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_38_48-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4266\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_38_48-PM-300x163.jpg\" alt=\"Unity 22\/11\/2016 , 11:38:48 PM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_38_48-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_38_48-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_38_48-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_38_48-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4266\" class=\"wp-caption-text\">Unity<br \/>22\/11\/2016 , 11:38:48 PM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4267\" aria-describedby=\"caption-attachment-4267\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_06_53-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4267\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_06_53-PM-300x164.jpg\" alt=\"Unity 22\/11\/2016 , 11:06:53 PM\" width=\"300\" height=\"164\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_06_53-PM-300x164.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_06_53-PM-768x420.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_06_53-PM-1024x560.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4267\" class=\"wp-caption-text\">Unity<br \/>22\/11\/2016 , 11:06:53 PM<\/figcaption><\/figure>\n<figure id=\"attachment_4268\" aria-describedby=\"caption-attachment-4268\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-09_36_59-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4268\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-09_36_59-PM-300x164.jpg\" alt=\"Unity 22\/11\/2016 , 09:36:59 PM\" width=\"300\" height=\"164\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-09_36_59-PM-300x164.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-09_36_59-PM-768x420.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-09_36_59-PM-1024x560.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4268\" class=\"wp-caption-text\">Unity<br \/>22\/11\/2016 , 09:36:59 PM<\/figcaption><\/figure>\n<figure id=\"attachment_4269\" aria-describedby=\"caption-attachment-4269\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_26-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4269\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_26-PM-300x163.jpg\" alt=\"Unity 22\/11\/2016 , 11:39:26 PM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_26-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_26-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_26-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-22_11_2016-11_39_26-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4269\" class=\"wp-caption-text\">Unity<br \/>22\/11\/2016 , 11:39:26 PM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4270\" aria-describedby=\"caption-attachment-4270\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-23_11_2016-12_11_16-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4270\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-23_11_2016-12_11_16-AM-300x163.jpg\" alt=\"Unity 23\/11\/2016 , 12:11:16 AM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-23_11_2016-12_11_16-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-23_11_2016-12_11_16-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-23_11_2016-12_11_16-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/11\/PhoenixGameDevelopment-23_11_2016-12_11_16-AM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4270\" class=\"wp-caption-text\">Unity<br \/>23\/11\/2016 , 12:11:16 AM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I have added the new ai pathfinding code to the project. This took longer than I thought, since I needed to essentially include two ai navigation solutions: one (the Unity Navmesh) for when the ai&#8217;s destination is within a navmesh, and another for when the ai is outside the navmesh. It is not possible to [&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-4264","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\/4264"}],"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=4264"}],"version-history":[{"count":2,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4264\/revisions"}],"predecessor-version":[{"id":4347,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4264\/revisions\/4347"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=4264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=4264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=4264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}