{"id":327,"date":"2025-12-14T20:53:35","date_gmt":"2025-12-14T20:53:35","guid":{"rendered":"https:\/\/sites.wsagames.com\/et4g23-yr3\/?p=327"},"modified":"2026-01-12T02:26:29","modified_gmt":"2026-01-12T02:26:29","slug":"week-12-star-navigation-prototype","status":"publish","type":"post","link":"https:\/\/sites.wsagames.com\/et4g23-yr3\/2025\/12\/14\/week-12-star-navigation-prototype\/","title":{"rendered":"Phase 4 &#8211; Star Navigation Prototype"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">After creating a video representation of the star navigation prototype:<\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" controls src=\"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-content\/uploads\/sites\/41\/2025\/12\/LocatingNorthStar-1.mp4\"><\/video><figcaption class=\"wp-element-caption\">Video of what the navigation would look like during gameplay<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" controls src=\"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-content\/uploads\/sites\/41\/2025\/12\/Viewport_LocatingNorthStar-1.mp4\"><\/video><figcaption class=\"wp-element-caption\">What&#8217;s really happening<\/figcaption><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\" \/>\n\n\n\n<p class=\"wp-block-paragraph\">I wanted to create a playable Unity version of this prototype, which is what I did in this video (Ignore the redness, that&#8217;s there so I can gauge the radius of the circle for the rotation).<\/p>\n\n\n\n<figure class=\"wp-block-video aligncenter\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" controls src=\"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-content\/uploads\/sites\/41\/2025\/12\/MedalTVScreenRecording20251214204812860-tr-edit.mp4\"><\/video><figcaption class=\"wp-element-caption\">The console is in the bottom left of the video<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This version allows the player to look around both vertically and horizontally and is a more accurate depiction of how the finalised mechanic would look.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A and D are used to look left and right<br>W and S are used to look up and down<br>Space is used to decide where to go, the player is given ~5 degrees of leniency with their choice. Whether or not they are right can be seen in the console in the video.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But how does it work? I created two scripts, one that:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Rotates the &#8216;sky&#8217; using the A and D keys<\/li>\n\n\n\n<li>Stores the &#8216;sky&#8217; rotation value and sets it to a number between 0 and 360<\/li>\n\n\n\n<li>Upon &#8216;Space&#8217; press the rotation value is compared to a &#8216;Direction value&#8217; that can be set in the inspector<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Another script:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Moves the camera up and down an axis between two values\n<ul class=\"wp-block-list\">\n<li>I can change these values in the inspector that prevent the camera from moving away from the &#8216;sky&#8217; asset<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>After creating a video representation of the star navigation prototype: I wanted to create a playable Unity version of this prototype, which is what I did in this video (Ignore the redness, that&#8217;s there so I can gauge the radius of the circle for the rotation). This version allows the player to look around both [&hellip;]<\/p>\n","protected":false},"author":28,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,21],"tags":[],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-phase-4","category-semester-1"],"_links":{"self":[{"href":"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-json\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":5,"href":"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":528,"href":"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-json\/wp\/v2\/posts\/327\/revisions\/528"}],"wp:attachment":[{"href":"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wsagames.com\/et4g23-yr3\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}