{"id":8618,"date":"2021-01-31T16:00:22","date_gmt":"2021-01-31T16:00:22","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=8618"},"modified":"2021-01-31T16:00:22","modified_gmt":"2021-01-31T16:00:22","slug":"p0-a9-part-858-solar-system-mechanics","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p0-a9-part-858-solar-system-mechanics\/","title":{"rendered":"P0-A9: Part 858: Solar System Mechanics"},"content":{"rendered":"\n<p>I have mostly finished the day\/night system.<br><br>It was quite difficult, and I had to fix some tricky bugs, but I am extremely pleased with how it turned out.<br><br>All  planets now have a gradual day\/night cycle, that varies for each planet.<\/p>\n\n\n\n<p>This day length is synced with the planet surface, so that when the player lands, the sun position and light settings are all consistent.<\/p>\n\n\n\n<p>It is also synced with the server time, so it is consistent between runs as well. <\/p>\n\n\n\n<p>This adds a lot of realism to the project.<\/p>\n\n\n\n<p>I have also made some improvements to the surface to space transition by improving the light transitions from &#8220;space&#8221; to &#8220;surface&#8221; as the user passes through the atmosphere.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/imgur.com\/yOe7MZY\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/yOe7MZYm.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/imgur.com\/e6mPAWM\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/e6mPAWMm.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/imgur.com\/HMFr1jZ\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/HMFr1jZm.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/imgur.com\/4TFT4Nr\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/4TFT4Nrm.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/imgur.com\/0mBndyz\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/0mBndyzm.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/imgur.com\/2poUQhm\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/2poUQhmm.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/imgur.com\/4ns8eZY\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/4ns8eZYm.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/imgur.com\/yCAk97x\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/yCAk97xm.jpg\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/imgur.com\/HwVdJQg\"><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/HwVdJQgm.jpg\" alt=\"\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I have mostly finished the day\/night system. It was quite difficult, and I had to fix some tricky bugs, but I am extremely pleased with how it turned out. All planets now have a gradual day\/night cycle, that varies for each planet. This day length is synced with the planet surface, so that when the [&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,25,10,11],"tags":[],"class_list":["post-8618","post","type-post","status-publish","format-standard","hentry","category-astral-realms","category-p-0","category-p0_a9","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\/8618"}],"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=8618"}],"version-history":[{"count":1,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/8618\/revisions"}],"predecessor-version":[{"id":8620,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/8618\/revisions\/8620"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=8618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=8618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=8618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}