{"id":3985,"date":"2016-10-23T20:14:11","date_gmt":"2016-10-23T19:14:11","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=3985"},"modified":"2016-10-23T20:14:11","modified_gmt":"2016-10-23T19:14:11","slug":"p-172-unity-space-environment-part-21","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p-172-unity-space-environment-part-21\/","title":{"rendered":"P-172: Unity: Space Environment: Part 21"},"content":{"rendered":"<p>I have implemented ladders in my Unity project. Surprisingly, there doesn&#8217;t seem to be a dedicated drop in system for ladders, so I had to create them myself.<\/p>\n<p>This was a little tricky, I had to use triggers and some vector maths to adjust the players position when they are moving up and down the ladder. This seems to work well. The trickiest part was disabling gravity on the player object while they are on the ladder. I needed to do this to prevent &#8220;jitter&#8221; caused by the player moving down due to gravity at the same time that they were moving up due to climbing.<\/p>\n<p>I have also added the character\u00a0that I created in Mixamo fuse for a previous T3D project. This was very easily to add and animate in Unity, using the existing animations that I had. I intend to eventually develop a complex AI system for this project, which will tie into the character and animation system.<\/p>\n<p>There are a few advanced packages in the Unity store for implementing AI (such as <a href=\"https:\/\/www.assetstore.unity3d.com\/en\/#!\/content\/23569\">RAIN<\/a>), but I feel it is too early to look into these. I will probably go with a custom solution anyway, since my requirements are quite unique.<\/p>\n<figure id=\"attachment_3986\" aria-describedby=\"caption-attachment-3986\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_56-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3986\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_56-PM-300x162.jpg\" alt=\"Unity 17\/10\/2016 , 10:22:56 PM Unity Personal (64bit) - P0Lab2.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"162\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_56-PM-300x162.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_56-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_56-PM-1024x554.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_56-PM.jpg 1904w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3986\" class=\"wp-caption-text\">Unity<br \/>17\/10\/2016 , 10:22:56 PM<br \/>Unity Personal (64bit) &#8211; P0Lab2.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_3987\" aria-describedby=\"caption-attachment-3987\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_48-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3987\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_48-PM-300x162.jpg\" alt=\"Unity 17\/10\/2016 , 10:22:48 PM Unity Personal (64bit) - P0Lab2.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"162\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_48-PM-300x162.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_48-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_48-PM-1024x554.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_22_48-PM.jpg 1904w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3987\" class=\"wp-caption-text\">Unity<br \/>17\/10\/2016 , 10:22:48 PM<br \/>Unity Personal (64bit) &#8211; P0Lab2.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_3988\" aria-describedby=\"caption-attachment-3988\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-04_32_04-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3988\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-04_32_04-PM-300x162.jpg\" alt=\"Unity 17\/10\/2016 , 04:32:04 PM Unity Personal (64bit) - P0Lab2.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"162\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-04_32_04-PM-300x162.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-04_32_04-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-04_32_04-PM-1024x554.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-04_32_04-PM.jpg 1904w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3988\" class=\"wp-caption-text\">Unity<br \/>17\/10\/2016 , 04:32:04 PM<br \/>Unity Personal (64bit) &#8211; P0Lab2.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_3989\" aria-describedby=\"caption-attachment-3989\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_23_02-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3989\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_23_02-PM-300x162.jpg\" alt=\"Unity 17\/10\/2016 , 10:23:02 PM Unity Personal (64bit) - P0Lab2.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"162\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_23_02-PM-300x162.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_23_02-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_23_02-PM-1024x554.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-10_23_02-PM.jpg 1904w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3989\" class=\"wp-caption-text\">Unity<br \/>17\/10\/2016 , 10:23:02 PM<br \/>Unity Personal (64bit) &#8211; P0Lab2.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n<figure id=\"attachment_3990\" aria-describedby=\"caption-attachment-3990\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-11_51_49-PM.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-3990\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-11_51_49-PM-300x163.jpg\" alt=\"Unity 17\/10\/2016 , 11:51:49 PM Unity Personal (64bit) - P0Lab2.unity - New Unity Project - PC, Mac &amp; Linux Standalone \" width=\"300\" height=\"163\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-11_51_49-PM-300x163.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-11_51_49-PM-768x416.jpg 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-11_51_49-PM-1024x555.jpg 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/10\/PhoenixGameDevelopment-17_10_2016-11_51_49-PM.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-3990\" class=\"wp-caption-text\">Unity<br \/>17\/10\/2016 , 11:51:49 PM<br \/>Unity Personal (64bit) &#8211; P0Lab2.unity &#8211; New Unity Project &#8211; PC, Mac &amp; Linux Standalone<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I have implemented ladders in my Unity project. Surprisingly, there doesn&#8217;t seem to be a dedicated drop in system for ladders, so I had to create them myself. This was a little tricky, I had to use triggers and some vector maths to adjust the players position when they are moving up and down 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,10,11],"tags":[],"class_list":["post-3985","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\/3985"}],"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=3985"}],"version-history":[{"count":1,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/3985\/revisions"}],"predecessor-version":[{"id":4010,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/3985\/revisions\/4010"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=3985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=3985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=3985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}