{"id":1134,"date":"2025-05-13T15:54:07","date_gmt":"2025-05-13T15:54:07","guid":{"rendered":"https:\/\/sites.wsagames.com\/sl1c22\/?p=1134"},"modified":"2025-05-15T10:28:15","modified_gmt":"2025-05-15T10:28:15","slug":"camera-moving-system","status":"publish","type":"post","link":"https:\/\/sites.wsagames.com\/sl1c22\/2025\/05\/13\/camera-moving-system\/","title":{"rendered":"Camera Moving System"},"content":{"rendered":"\n<figure class=\"wp-block-embed alignwide is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Camera Moving\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/tkFAEYqW5JU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In Scene: 5.2_Basement, the presence of two long background images means the camera is divided into four distinct viewpoints. Ensuring smooth transitions between these views was a real challenge for me and required careful planning.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since I had already implemented horizontal camera movement back in Scene: 3.2_Hallway, the next step for Scene: 5.2_Basement was to add vertical movement as well. The basic logic was to divide the scene into two main variables: \u201cBasement A\u201d and \u201cBasement B\u201d, and then assign sub-variables within each (view1, view2, view3, view4). By managing these variables, I was able to achieve smooth and responsive camera transitions across all directions.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>View 1-2 (Basement A), View 3-4 (Basement B)<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img fetchpriority=\"high\" decoding=\"async\" width=\"908\" height=\"1416\" src=\"https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/MosMa-1Beta-5.2-Basement-Windows-Mac-Linux-Unity-2022.3.15f1_-_DX11_-2025_5_15-11_19_44.png-2025_5_15-11_22_04.png\" alt=\"\" class=\"wp-image-1359\" style=\"border-width:5px\" srcset=\"https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/MosMa-1Beta-5.2-Basement-Windows-Mac-Linux-Unity-2022.3.15f1_-_DX11_-2025_5_15-11_19_44.png-2025_5_15-11_22_04.png 908w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/MosMa-1Beta-5.2-Basement-Windows-Mac-Linux-Unity-2022.3.15f1_-_DX11_-2025_5_15-11_19_44.png-2025_5_15-11_22_04-192x300.png 192w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/MosMa-1Beta-5.2-Basement-Windows-Mac-Linux-Unity-2022.3.15f1_-_DX11_-2025_5_15-11_19_44.png-2025_5_15-11_22_04-657x1024.png 657w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/MosMa-1Beta-5.2-Basement-Windows-Mac-Linux-Unity-2022.3.15f1_-_DX11_-2025_5_15-11_19_44.png-2025_5_15-11_22_04-768x1198.png 768w\" sizes=\"(max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>View 2-1 (Basement A), View 4-3 (Basement B)<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img decoding=\"async\" width=\"903\" height=\"1422\" src=\"https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/MosMa-1Beta-5.2-Basement-Windows-Mac-Linux-Unity-2022.3.15f1_-_DX11_-2025_5_15-11_19_44.png\" alt=\"\" class=\"wp-image-1358\" style=\"border-width:5px\" srcset=\"https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/MosMa-1Beta-5.2-Basement-Windows-Mac-Linux-Unity-2022.3.15f1_-_DX11_-2025_5_15-11_19_44.png 903w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/MosMa-1Beta-5.2-Basement-Windows-Mac-Linux-Unity-2022.3.15f1_-_DX11_-2025_5_15-11_19_44-191x300.png 191w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/MosMa-1Beta-5.2-Basement-Windows-Mac-Linux-Unity-2022.3.15f1_-_DX11_-2025_5_15-11_19_44-650x1024.png 650w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/MosMa-1Beta-5.2-Basement-Windows-Mac-Linux-Unity-2022.3.15f1_-_DX11_-2025_5_15-11_19_44-768x1209.png 768w\" sizes=\"(max-width: 903px) 100vw, 903px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>View Up, Basement A &#8211; Basement B<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img decoding=\"async\" width=\"903\" height=\"1684\" src=\"https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/upup.jpg\" alt=\"\" class=\"wp-image-1360\" style=\"border-width:5px\" srcset=\"https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/upup.jpg 903w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/upup-161x300.jpg 161w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/upup-549x1024.jpg 549w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/upup-768x1432.jpg 768w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/upup-824x1536.jpg 824w\" sizes=\"(max-width: 903px) 100vw, 903px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>View Down, Basement B &#8211; Basement A<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"903\" height=\"1976\" src=\"https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/DOWNDO.jpg\" alt=\"\" class=\"wp-image-1361\" style=\"border-width:5px\" srcset=\"https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/DOWNDO.jpg 903w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/DOWNDO-137x300.jpg 137w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/DOWNDO-468x1024.jpg 468w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/DOWNDO-768x1681.jpg 768w, https:\/\/sites.wsagames.com\/sl1c22\/wp-content\/uploads\/sites\/14\/2025\/05\/DOWNDO-702x1536.jpg 702w\" sizes=\"(max-width: 903px) 100vw, 903px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In Scene: 5.2_Basement, the presence of two long background images means the camera is divided into four distinct viewpoints. Ensuring smooth transitions between these views was a real challenge for me and required careful planning. Since I had already implemented horizontal camera movement back in Scene: 3.2_Hallway, the next step for Scene: 5.2_Basement was to [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,64,33],"tags":[],"class_list":["post-1134","post","type-post","status-publish","format-standard","hentry","category-programing","category-systems-in-the-game","category-semester-2"],"_links":{"self":[{"href":"https:\/\/sites.wsagames.com\/sl1c22\/wp-json\/wp\/v2\/posts\/1134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.wsagames.com\/sl1c22\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wsagames.com\/sl1c22\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/sl1c22\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/sl1c22\/wp-json\/wp\/v2\/comments?post=1134"}],"version-history":[{"count":2,"href":"https:\/\/sites.wsagames.com\/sl1c22\/wp-json\/wp\/v2\/posts\/1134\/revisions"}],"predecessor-version":[{"id":1362,"href":"https:\/\/sites.wsagames.com\/sl1c22\/wp-json\/wp\/v2\/posts\/1134\/revisions\/1362"}],"wp:attachment":[{"href":"https:\/\/sites.wsagames.com\/sl1c22\/wp-json\/wp\/v2\/media?parent=1134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wsagames.com\/sl1c22\/wp-json\/wp\/v2\/categories?post=1134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wsagames.com\/sl1c22\/wp-json\/wp\/v2\/tags?post=1134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}