{"id":4579,"date":"2017-01-08T21:52:08","date_gmt":"2017-01-08T21:52:08","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=4579"},"modified":"2017-01-08T21:52:08","modified_gmt":"2017-01-08T21:52:08","slug":"p0-p-172-part-86-long-distance-travel-skybox","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p0-p-172-part-86-long-distance-travel-skybox\/","title":{"rendered":"P0-P-172: Part 86: Long Distance Travel, Skybox"},"content":{"rendered":"<p>After a lot of work, I have managed to fully implement the long distance travel\/floating origin system.<\/p>\n<p>The issue was indeed caused by the collision between the ships hull and the interior objects.<\/p>\n<p>I fixed this by using collision layers. The ships hull only collides against a specific layer (which will contain planets, asteroid, and other such objects) and the interior objects are on a different layer. This solves the collision problem.<\/p>\n<p>I also fixed the skybox. It is now compatible with the floating origin system, although the actually sky textures dont look correct when the camera rotates. This is not an issue, since I will be replacing this skybox with a procedural shader in the future.<\/p>\n<p>I can now fly for extremely long distances, from one planet to another, at very high speeds, and land on other planets without issues. When the player leaves the shuttle on another planet, the gravity and orientation doesn&#8217;t seem to work properly, this will need to be added later.<\/p>\n<p>In general, MS2 is going very well. The next issue is to store the level objects on the server, not the client. This project is, or at least, will be, a persistent world multiplayer game, and so I will need all objects to be stored on the server and paged to the client. This is my main task for next week.<\/p>\n<figure id=\"attachment_4569\" aria-describedby=\"caption-attachment-4569\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-07_24_21-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4569\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-07_24_21-PM-300x164.jpg\" alt=\"Unity 07\/01\/2017 , 07:24:21 PM\" width=\"300\" height=\"164\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-07_24_21-PM-300x164.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-07_24_21-PM-768x420.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-07_24_21-PM-1024x560.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4569\" class=\"wp-caption-text\">Unity<br \/>07\/01\/2017 , 07:24:21 PM<\/figcaption><\/figure>\n<figure id=\"attachment_4568\" aria-describedby=\"caption-attachment-4568\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-11_17_18-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4568\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-11_17_18-PM-300x164.jpg\" alt=\"Unity 07\/01\/2017 , 11:17:18 PM\" width=\"300\" height=\"164\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-11_17_18-PM-300x164.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-11_17_18-PM-768x420.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-11_17_18-PM-1024x560.jpg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4568\" class=\"wp-caption-text\">Unity<br \/>07\/01\/2017 , 11:17:18 PM<\/figcaption><\/figure>\n<figure id=\"attachment_4567\" aria-describedby=\"caption-attachment-4567\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-11_16_51-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4567\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-11_16_51-PM-300x163.jpg\" alt=\"Unity 07\/01\/2017 , 11:16:51 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\/2017\/01\/PhoenixGameDevelopment-07_01_2017-11_16_51-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-11_16_51-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-11_16_51-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-11_16_51-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4567\" class=\"wp-caption-text\">Unity<br \/>07\/01\/2017 , 11:16:51 PM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4566\" aria-describedby=\"caption-attachment-4566\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-06_01_2017-11_45_59-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4566\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-06_01_2017-11_45_59-PM-300x163.jpg\" alt=\"Unity 06\/01\/2017 , 11:45:59 PM Unity Personal (64bit) - P0Main.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" \/><\/a><figcaption id=\"caption-attachment-4566\" class=\"wp-caption-text\">Unity<br \/>06\/01\/2017 , 11:45:59 PM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4564\" aria-describedby=\"caption-attachment-4564\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-06_01_2017-11_45_35-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4564\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-06_01_2017-11_45_35-PM-300x163.jpg\" alt=\"Unity 06\/01\/2017 , 11:45:35 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\/2017\/01\/PhoenixGameDevelopment-06_01_2017-11_45_35-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-06_01_2017-11_45_35-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-06_01_2017-11_45_35-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-06_01_2017-11_45_35-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4564\" class=\"wp-caption-text\">Unity<br \/>06\/01\/2017 , 11:45:35 PM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_4563\" aria-describedby=\"caption-attachment-4563\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-04_01_2017-04_17_44-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4563\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-04_01_2017-04_17_44-AM-300x163.jpg\" alt=\"Unity 04\/01\/2017 , 04:17:44 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\/2017\/01\/PhoenixGameDevelopment-04_01_2017-04_17_44-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-04_01_2017-04_17_44-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-04_01_2017-04_17_44-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-04_01_2017-04_17_44-AM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4563\" class=\"wp-caption-text\">Unity<br \/>04\/01\/2017 , 04:17:44 AM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure>\n<figure id=\"attachment_4565\" aria-describedby=\"caption-attachment-4565\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-07_23_58-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4565\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-07_23_58-PM-300x163.jpg\" alt=\"Unity 07\/01\/2017 , 07:23:58 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\/2017\/01\/PhoenixGameDevelopment-07_01_2017-07_23_58-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-07_23_58-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-07_23_58-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/01\/PhoenixGameDevelopment-07_01_2017-07_23_58-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4565\" class=\"wp-caption-text\">Unity<br \/>07\/01\/2017 , 07:23:58 PM<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>After a lot of work, I have managed to fully implement the long distance travel\/floating origin system. The issue was indeed caused by the collision between the ships hull and the interior objects. I fixed this by using collision layers. The ships hull only collides against a specific layer (which will contain planets, asteroid, and [&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-4579","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\/4579"}],"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=4579"}],"version-history":[{"count":1,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4579\/revisions"}],"predecessor-version":[{"id":4582,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4579\/revisions\/4582"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=4579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=4579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=4579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}