Godot platform vr

From thedivergentai/GD-Agentic-Skills · View interactive version

Godot platform vr is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for VR platforms (Meta Quest, PSVR, SteamVR, Pico) covering XR toolkit (OpenXR), comfort settings (vignetting, snap turning, teleport), motion controls, hand tracking, and 90+ FPS requirements. Use when targeting VR headsets or implementing immersive 3D experiences. Keywords VR, XR,

How to use this skill

Skill file

Platform: VR

90+ FPS, comfort-first design, and motion control accuracy define VR development.

NEVER Do (Expert VR Rules)

Rendering & Comfort

Locomotion & Interaction

Safety & System


Comfort Decision Tree (start here)

  1. Can the player opt out of continuous locomotion? → If no, stop and add teleport + seated mode before any smooth locomotion code.
  2. Turning: snap turn default → load vr_locomotion_handler.gd. Smooth turn only with vignette + comfort toggle.
  3. Play area / focus: load vr_safety_guardian_warner.gd + vr_headset_focus_guard.gd before shipping any locomotion.
  4. Session bootstrap / actions / FPS: then load vr_openxr_initializer.gd, vr_input_action_mapper.gd, vr_performance_config.gd.

Available Scripts

MANDATORY: After the comfort decision tree, read the matching script before implementing that pattern. Do not invent a bare use_xr = true / XRController3D.is_button_pressed demo — start from the scripts below.

[vr_openxr_initializer.gd](scripts/vr_openxr_initializer.gd)

Expert OpenXR initialization with driver support and feature verification.

[vr_hand_gesture_detector.gd](scripts/vr_hand_gesture_detector.gd)

Pinch and Grab recognition using XRHandModifier3D for hand tracking.

[vr_locomotion_handler.gd](scripts/vr_locomotion_handler.gd)

Snap turn, comfort vignette, and accessibility teleport_to() with guardian/focus failure modes.

[vr_passthrough_manager.gd](scripts/vr_passthrough_manager.gd)

Alpha blending and underlay setup for Mixed Reality (AR/VR) transitions.

[vr_performance_config.gd](scripts/vr_performance_config.gd)

Expert Foveated Rendering and Variable Rate Shading (VRS) setup.

[vr_haptic_sequencer.gd](scripts/vr_haptic_sequencer.gd)

Complex haptic pulse sequencing using XRController3D triggers.

[vr_physics_hand_controller.gd](scripts/vr_physics_hand_controller.gd)

Non-clipping, physics-following hands that respect environmental solid.

[vr_safety_guardian_warner.gd](scripts/vr_safety_guardian_warner.gd)

Guardian/Chaperone boundary distance warning logic using XRServer.

[vr_headset_focus_guard.gd](scripts/vr_headset_focus_guard.gd)

Headset-aware pause logic for focus loss (System Menu / Headset Off).

[vr_input_action_mapper.gd](scripts/vr_input_action_mapper.gd)

OpenXR Action Map abstraction to decouple logic from hardware buttons.


Teleport Accessibility Path

Always ship teleport (or room-scale only) as an alternative to smooth locomotion.

  1. MANDATORY read vr_locomotion_handler.gd — teleport_to(target_global).
  2. Raycast from controller aim to floor/navmesh; pass the hit point into teleport_to.
  3. Failure modes (must handle):
  1. Pair teleport with snap turn + vignette from the same locomotion handler.

Comfort Gates (NEVER-adjacent)

These are hard comfort gates, not soft preferences:

  1. 90+ FPS before any optional VFX — nausea risk outweighs polish.
  2. Teleport or snap-turn path always available — never ship smooth-only locomotion.
  3. Guardian + focus handlers live before first public playtest.
  4. UI at 1–3 m on composition layers / static quads — never billboarded close-range HUD.

Expert patterns (script pointers)

  1. Mixed-Reality passthrough (Quest 3) — environment_blend_mode = ALPHA_BLEND + transparent_bg exposes the camera feed through scene alpha → mixed_reality_manager.gd / vr_passthrough_manager.gd.
  2. Composition-layer UI — OpenXRCompositionLayerQuad + SubViewport bypasses lens blur → xr_performance_overlay.gd.
  3. Universal grab — OpenXR action map + central reparent manager → universal_grab_manager.gd + vr_input_action_mapper.gd.

Deep dives (on demand)

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

Official Documentation

Related Skills

Prerequisites
Complements
Downstream / consumers
Master
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.