0 votes

I'd like to display VR controllers models in game.

OpenVR plugin description is very enigmatic:

OpenVR carries 3D models of controllers, base stations and HMDs.
Wherever possible these models reflect the actual physical appearance
of the devices.

In Godot OpenVR the OpenVRRenderModel class can be used to load these
models into your game or application to be displayed to the user.

I couldn't find information how to load models from class. "Resources" in documentation talk only about loading scene files.

I found class example in Register scripts as classes:

# Declare the class name here
class_name ScriptName, "res://path/to/optional/icon.svg"

func _ready():
    var this = ScriptName           # reference to the script
    var cppNode = MyCppNode.new()   # new instance of a class named MyCppNode


I have no idea how can I work with it to create a mesh for my VR controller. Could anyone steer me in right direction?

in Engine by (102 points)

1 Answer

0 votes
Best answer

OK, I found it's already made as scene within openvr plugin assets (ovr_controller.tscn)

by (102 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.