{"id":4724,"date":"2017-02-12T23:54:33","date_gmt":"2017-02-12T23:54:33","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=4724"},"modified":"2017-02-13T00:46:43","modified_gmt":"2017-02-13T00:46:43","slug":"p0-p-172-part-107-3d-gravity","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p0-p-172-part-107-3d-gravity\/","title":{"rendered":"P0-P-172: Part 107: 3D Gravity"},"content":{"rendered":"<p>I have decided to work on implementing 3D gravity into my project, while I further research the rotation\/ship control feature.<\/p>\n<p>Currently, gravity is applied only along the y axis, however, the player needs to be able to walk around the surface of a planet, an asteroid, a ship, etc, so I need to modify my existing character controller to allow it to work in three dimensions.<\/p>\n<p>The problem is that the Unity character controller from the standard assets doesn&#8217;t allow 3D rotation, so I may need to use the one from the Space Exploration Engine itself, which uses a rigidbody component.<\/p>\n<p>I have, however, made extensive changes to my character controller, which will need to be ported over to the new character controller, which could take some time.<\/p>\n<p>I have verified that the SEE character controller works, but I am still working on modifying my existing character controller. I may be able to remove the standard character controller component and add a rigid body system in its place, without changing any of the other code.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_4713\" aria-describedby=\"caption-attachment-4713\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/02\/PhoenixGameDevelopment-11_02_2017-05_40_48-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4713\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/02\/PhoenixGameDevelopment-11_02_2017-05_40_48-AM-300x163.jpg\" alt=\"Unity 11\/02\/2017 , 05:40:48 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\/02\/PhoenixGameDevelopment-11_02_2017-05_40_48-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/02\/PhoenixGameDevelopment-11_02_2017-05_40_48-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/02\/PhoenixGameDevelopment-11_02_2017-05_40_48-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/02\/PhoenixGameDevelopment-11_02_2017-05_40_48-AM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4713\" class=\"wp-caption-text\">Unity<br \/>11\/02\/2017 , 05:40:48 AM<br \/>Unity Personal (64bit) &#8211; P0Main.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone*<\/figcaption><\/figure>\n<figure id=\"attachment_4714\" aria-describedby=\"caption-attachment-4714\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/02\/PhoenixGameDevelopment-11_02_2017-05_46_55-AM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4714\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/02\/PhoenixGameDevelopment-11_02_2017-05_46_55-AM-300x163.jpg\" alt=\"Unity 11\/02\/2017 , 05:46:55 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\/02\/PhoenixGameDevelopment-11_02_2017-05_46_55-AM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/02\/PhoenixGameDevelopment-11_02_2017-05_46_55-AM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/02\/PhoenixGameDevelopment-11_02_2017-05_46_55-AM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2017\/02\/PhoenixGameDevelopment-11_02_2017-05_46_55-AM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-4714\" class=\"wp-caption-text\">Unity<br \/>11\/02\/2017 , 05:46:55 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 decided to work on implementing 3D gravity into my project, while I further research the rotation\/ship control feature. Currently, gravity is applied only along the y axis, however, the player needs to be able to walk around the surface of a planet, an asteroid, a ship, etc, so I need to modify my [&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-4724","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\/4724"}],"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=4724"}],"version-history":[{"count":3,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4724\/revisions"}],"predecessor-version":[{"id":4733,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/4724\/revisions\/4733"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=4724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=4724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=4724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}