Godot platform vr

From nix-community/nur-combined · View interactive version

Godot platform vr is an AI agent skill from the GitHub repository nix-community/nur-combined. 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


Available Scripts

MANDATORY: Read the appropriate script before implementing the corresponding pattern.

[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)

Expert Snap Turn and Comfort Vignette (Shader-less) implementation.

[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 hwardware buttons.


# Enable XR
func _ready() -> void:
    var xr_interface := XRServer.find_interface("OpenXR")
    if xr_interface and xr_interface.initialize():
        get_viewport().use_xr = true

Comfort Settings

Motion Controls

# XRController3D for hands
@onready var left_hand := $XROrigin3D/LeftController
@onready var right_hand := $XROrigin3D/RightController

func _process(delta: float) -> void:
    if left_hand.is_button_pressed("trigger"):
        grab_with_left()

Performance

Best Practices

  1. Comfort First - Prevent motion sickness
  2. High FPS - 90+ required
  3. Physical Space - Respect boundaries
  4. UI Distance - 1-3m from player

Reference

Related

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.