A few useful nodes that should ease implementing VR in Godot. UI, Teleport and other useful tools. Big shout outs to the creators/projects:
godot-openvr
-directory. All credits go to Bastiaan Olij.Project > Project Settings... > Autoload
and search for the script res://addons/vr-toolkit/GlobalVRAccess.gd
. This creates a singleton which can be accessed from anywhere in the code, I sadly could not find a workaround for some features.Project > Project Settings... > Plugins
and set the ARVRControllerExtension
to active.Project > Project Settings... > GDNative
godot_openvr is enabled.https://docs.godotengine.org/en/stable/tutorials/plugins/editor/installing_plugins.html
InputEventMouse
interaction with those viewports can be "faked": InputEventMouseFor more in depth explanation of nodes, scripts and general functionalities check out the Wiki.
Please note that (sadly) i do not have tested these scripts / behaviours on any other devices than the Rift Oculus. I will be able to test on the Valve Index soon, keep in contact if anything does not properly work on other devices.
Help is greatly appreciated! You can check out known issues or submit new functionality and bugs/errors, as well as enhancements.