Skip to reading
VR Headset Setup & Testing

Make the adventure playable by ray

Edition 0.86.3.4

Prepare scenes and input for VR, export to a suitable Godot/OpenXR setup, and follow headset-specific packaging and testing routes for Quest, Valve Index and Galaxy XR.

Download PDFView PDF page

AUTHORING / INVENTORY, DIALOGUE AND MENUS

Take one interaction your game already depends on. A player aims at a fuse, picks it up, opens the inventory and uses it on a panel. Follow that trip all the way through. It catches problems that a successful launch never will.

01. Aim and interact. PCA casts a straight ray up to 10 game units from the controller’s aim pose. The first hit must belong to a registered room entity or one of its children. A decorative collider in front of a fuse can swallow the hit. Check the active verb, reachable distance and collision layers 1 and 3 (mask 5).

02. Open inventory. Front places a small list in front of the head. Wrist attaches it to the left controller. The panel shows up to six names, starting at the highlight. Cycle with Secondary and press Interact to select. Use the chosen item on its target and verify that the intended verb or item rule fires once.

03. Read every screen you rely on. Wear the headset for the opening logo, subtitles, timed dialogue, verb selector, save/load and pause screens. The stock world ray runs entity verbs. A button in a desktop overlay needs a working XR selection path. Opening Pause alone proves nothing about choosing Resume.

04. Bridge a custom GUI when needed. In the editable Godot project, display the Control tree in a SubViewport on a world-space panel. Give the panel a collider. Map a ray hit to panel UVs, then to SubViewport pixels. Send pointer motion, press and release to that viewport. Give the panel first use of the click while open so the door behind it stays closed.

If you change what Trigger does, check the inventory caption. The stock list literally says “Trigger: Select”. Update the wording in the exported VR player, or keep Trigger as Interact. Prompts should agree with the player’s actual controls.

Page 6 of 19Permalink
Go to page