{"id":1638,"date":"2026-05-09T22:32:46","date_gmt":"2026-05-09T22:32:46","guid":{"rendered":"https:\/\/sites.wsagames.com\/yy8y24\/?p=1638"},"modified":"2026-05-10T16:22:02","modified_gmt":"2026-05-10T16:22:02","slug":"one-way-door","status":"publish","type":"post","link":"https:\/\/sites.wsagames.com\/yy8y24\/2026\/05\/09\/one-way-door\/","title":{"rendered":"One-Way Door"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>The video shows One-Way Door system:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-video alignwide\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" controls src=\"https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/One-Way-Door.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>One-Way Door system:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"610\" src=\"https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222615-1-1024x610.png\" alt=\"\" class=\"wp-image-1648\" srcset=\"https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222615-1-1024x610.png 1024w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222615-1-300x179.png 300w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222615-1-768x457.png 768w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222615-1-1536x915.png 1536w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222615-1-2048x1220.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">First, I create a new Blueprint class and add a Cube and a Box Collision to the Blueprint\u2019s viewport. I set the Cube and the Box Collision to the same size, with the right-hand face of the Cube touching the left-hand face of the Box Collision. I ensure that both are marked as variables so that they can be dragged into the Blueprint.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As this wall is invisible to the player in the scene, I have deselected the \u2018Visible\u2019 option for the wall\u2019s Cube. This means the wall still exists in the scene but remains invisible to the player.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Blueprint of One-Way Door:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"611\" src=\"https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222804-1-1024x611.png\" alt=\"\" class=\"wp-image-1656\" srcset=\"https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222804-1-1024x611.png 1024w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222804-1-300x179.png 300w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222804-1-768x458.png 768w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222804-1-1536x916.png 1536w, https:\/\/sites.wsagames.com\/yy8y24\/wp-content\/uploads\/sites\/65\/2026\/05\/\u5c4f\u5e55\u622a\u56fe-2026-05-05-222804-1-2048x1221.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u2018Wall\u2019 refers to an actual wall, whilst \u2018Box Collision\u2019 refers to the collision box used to detect the player.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The basic approach is as follows: when the player enters the Box Collision, the system detects the player and retrieves the player\u2019s position and the wall\u2019s position. The player\u2019s position is subtracted from the wall\u2019s position to obtain a direction vector pointing from the wall towards the player. The direction directly in front of the wall is then determined: if the dot product is greater than 0, the player is directly in front; if it is less than 0, the player is behind the wall. These are the conditions for the determination. If the conditions are met, the collision volume is set to zero, allowing the player to pass through.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Re-enable the Wall\u2019s collision volume once the player has left the Box Collision. Ensure that this system can be triggered repeatedly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The video shows One-Way Door system: One-Way Door system: First, I create a new Blueprint class and add a Cube and a Box Collision to the Blueprint\u2019s viewport. I set the Cube and the Box Collision to the same size, with the right-hand face of the Cube touching the left-hand face of the Box Collision. [&hellip;]<\/p>\n","protected":false},"author":56,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75,1],"tags":[],"class_list":["post-1638","post","type-post","status-publish","format-standard","hentry","category-development","category-year2"],"_links":{"self":[{"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/posts\/1638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/comments?post=1638"}],"version-history":[{"count":9,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/posts\/1638\/revisions"}],"predecessor-version":[{"id":1660,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/posts\/1638\/revisions\/1660"}],"wp:attachment":[{"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/media?parent=1638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/categories?post=1638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wsagames.com\/yy8y24\/wp-json\/wp\/v2\/tags?post=1638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}