summaryrefslogtreecommitdiff
path: root/scene/3d/arvr_nodes.h
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2019-02-05 21:02:13 +1100
committerBastiaan Olij <mux213@gmail.com>2019-02-06 21:03:43 +1100
commit005fb622845a198bae9300859559e623d2508cc0 (patch)
tree51dd27fe771a90b4e6c69d5fabc01b98e11da573 /scene/3d/arvr_nodes.h
parentc19840dad73774dd9ae10e99399e1d3f7284f75b (diff)
Added a mesh interface to the arvr positional trackers
Diffstat (limited to 'scene/3d/arvr_nodes.h')
-rw-r--r--scene/3d/arvr_nodes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/3d/arvr_nodes.h b/scene/3d/arvr_nodes.h
index 523bc112c1..0833e18d48 100644
--- a/scene/3d/arvr_nodes.h
+++ b/scene/3d/arvr_nodes.h
@@ -33,6 +33,7 @@
#include "scene/3d/camera.h"
#include "scene/3d/spatial.h"
+#include "scene/resources/mesh.h"
#include "servers/arvr/arvr_positional_tracker.h"
/**
@@ -75,6 +76,7 @@ private:
int controller_id;
bool is_active;
int button_states;
+ Ref<Mesh> mesh;
protected:
void _notification(int p_what);
@@ -95,6 +97,8 @@ public:
bool get_is_active() const;
ARVRPositionalTracker::TrackerHand get_hand() const;
+ Ref<Mesh> get_mesh(void) const;
+
String get_configuration_warning() const;
ARVRController();
@@ -113,6 +117,7 @@ private:
int anchor_id;
bool is_active;
Vector3 size;
+ Ref<Mesh> mesh;
protected:
void _notification(int p_what);
@@ -128,6 +133,8 @@ public:
Plane get_plane() const;
+ Ref<Mesh> get_mesh(void) const;
+
String get_configuration_warning() const;
ARVRAnchor();