OpenXRFbRenderModel

Inherits: Node3D

Uses the XR_FB_render_model extension to show the controllers for the headset that is currently in use.

Description

Uses the XR_FB_render_model extension to show the controllers for the headset that is currently in use.

The most common way to use this node, is to make it a child of an XRController3D and set its pose property to "grip".

Properties

Model

render_model_type

0

Methods

Node3D

get_render_model_node ( )

bool

has_render_model_node ( )


Signals

openxr_fb_render_model_loaded ( )

Emitted after the controller model has been loaded.

This can only happen sometime after the OpenXR session has started.


Enumerations

enum Model:

Model MODEL_CONTROLLER_LEFT = 0

The left controller model.

Model MODEL_CONTROLLER_RIGHT = 1

The right controller model.


Property Descriptions

Model render_model_type = 0

  • void set_render_model_type ( Model value )

  • Model get_render_model_type ( )

Which controller model (left or right) to load.


Method Descriptions

Node3D get_render_model_node ( )

The top-level node that was loaded from the GLTF document that we received from the OpenXR runtime. It will be a child node of this node.

Returns null if it hasn't been loaded yet.


bool has_render_model_node ( )

Returns true if the render model has already been loaded.