{"id":2515,"date":"2016-03-20T22:13:05","date_gmt":"2016-03-20T22:13:05","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=2515"},"modified":"2016-03-20T22:13:05","modified_gmt":"2016-03-20T22:13:05","slug":"p-167-paranoia-oculus-rift-horror-game-world-constructor-6-doors-in-t3d-and-collision","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/p-167-paranoia-oculus-rift-horror-game-world-constructor-6-doors-in-t3d-and-collision\/","title":{"rendered":"P-167: Paranoia: Oculus Rift Horror Game: World Constructor 6: Doors in T3D (And Collision)"},"content":{"rendered":"<p>I have been working on putting doors into this project, and I have come across the same issue that I have seen previously, which is that T3D still doesn&#8217;t have a built-in resource for doors. What makes this a problem is that it is not possible to simply export a shape with an animated collision hull, since in T3D, collision geometry doesn&#8217;t seem to update in all cases.<\/p>\n<p>What I usually do is to create my own solution, usually by exporting a door object with no collision object, and then exporting another shape with only a collision hull (an invisible shape). I then place the invisible shape over the door object in the world, and move it from script when the door is opened and closed. This seems to work, but it is quite a messy solution.<\/p>\n<p>I did find one door resource <a href=\"http:\/\/www.richardsgamestudio.com\/downloads.html\">HERE<\/a>, which I got compiling, but I couldn&#8217;t get it to work properly, it also seemed to have issues with collision. There is a discussion on the T3D forums <a href=\"http:\/\/forums.torque3d.org\/viewtopic.php?t=528\">HERE<\/a> on this issue.<\/p>\n<p>I will probably have to resort to my invisible collision object solution for this project, but I will look into fixing this problem in a more elegant way in future.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2504\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-02_14_52-AM-300x238.png\" alt=\"PhoenixGameDevelopment - 17_03_2016 , 02_14_52 AM\" width=\"300\" height=\"238\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-02_14_52-AM-300x238.png 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-02_14_52-AM-768x610.png 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-02_14_52-AM-1024x813.png 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-02_14_52-AM.png 1026w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2503\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-03_30_16-AM-300x238.png\" alt=\"PhoenixGameDevelopment - 17_03_2016 , 03_30_16 AM\" width=\"300\" height=\"238\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-03_30_16-AM-300x238.png 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-03_30_16-AM-768x610.png 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-03_30_16-AM-1024x813.png 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-03_30_16-AM.png 1026w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2502\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-03_43_54-AM-300x238.png\" alt=\"PhoenixGameDevelopment - 17_03_2016 , 03_43_54 AM\" width=\"300\" height=\"238\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-03_43_54-AM-300x238.png 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-03_43_54-AM-768x610.png 768w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-03_43_54-AM-1024x813.png 1024w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2016\/03\/PhoenixGameDevelopment-17_03_2016-03_43_54-AM.png 1026w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been working on putting doors into this project, and I have come across the same issue that I have seen previously, which is that T3D still doesn&#8217;t have a built-in resource for doors. What makes this a problem is that it is not possible to simply export a shape with an animated collision [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,10],"tags":[],"class_list":["post-2515","post","type-post","status-publish","format-standard","hentry","category-p-0","category-software-and-games","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\/2515"}],"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=2515"}],"version-history":[{"count":1,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/2515\/revisions"}],"predecessor-version":[{"id":2516,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/2515\/revisions\/2516"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=2515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=2515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=2515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}