17 lines
371 B
C++
17 lines
371 B
C++
#pragma once
|
|
|
|
#include "scene/3d/xr/xr_nodes.h"
|
|
#include "servers/xr/xr_interface.h"
|
|
|
|
class VROrigin : public XROrigin3D {
|
|
GDCLASS(VROrigin, XROrigin3D);
|
|
static void _bind_methods();
|
|
|
|
private:
|
|
void setup_vr_interface(Ref<XRInterface> with_interface);
|
|
void on_xr_interface_added(StringName interface);
|
|
void enter_tree();
|
|
|
|
protected:
|
|
void _notification(int what);
|
|
};
|