Repository navigation
Module select menu: fix it on the headset, and press MENU twice to go back - #72
Merged
Merged
Conversation
On a Quest the menu showed only its top edge; the rest was below the floor. It was placed on its first frame, which comes before the first tracked head pose, so on the floor-level rig the camera was still at about y = 0 and the menu went into the ground. It never moved up again: recentring only reacted to turning, not to height. - Wait for the headset to report a tracked head before placing it (hidden until then; shown anyway after 3 s so it can never stay missing). With no headset (editor) it places straight away as before. - Snap again whenever the head height changes by more than 0.3 m: tracking starting late, a recentre, the player sitting down or standing up. - 13% smaller (canvasScale 0.0015 -> 0.0013), so the whole panel sits more comfortably in a Quest 2's view. Checked with the playtest harness by holding the camera at floor height while the menu places, then raising it to 1.65 m: the menu re-places at eye level.
On the headset there was no obvious way back to the module menu; holding B for 1.5 s worked but was not something anyone would try. - The left controller's MENU button now goes back: the first press shows "Press MENU again to go back to the module menu", a second press within 3 s goes. Twice, so a stray press cannot throw away a child's progress. No module on main (or the team's Module 3 branch) reads that button. - Hold B still works, with its progress bar. - The prompt draws without a depth test, so a nearby wall (Module 1 starts indoors) cannot hide it, and sits a little lower so it clears Module 2's briefing panel. - The menu's hint line now mentions MENU instead of B. Checked with the playtest harness: in Module 1's game, one MENU press shows the prompt in front of the wall and the second returns to the menu; hold B from Module 2 still returns.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes to the module select menu from #71, found on a real Quest 2.
1. The menu was mostly below the floor
On the headset you could only see the top edge of the menu, which also made cards hard to select.
Cause: the menu set its position on its very first frame. On a Quest that comes before the headset reports where your head is, so the game still thought your eyes were at floor level and put the menu there, mostly underground. After that it only re-centred when you turned, never when your height changed.
Fix (
ModuleSelectMenu.Place):canvasScale0.0015 → 0.0013) so it fits more comfortably in view.2. No obvious way back to the menu
Holding B for 1.5 s worked, but nobody would think to try it.
Fix (
ReturnToMenu,XRButtons):Testing