summaryrefslogtreecommitdiffstats
path: root/modules/openxr/extensions/openxr_hand_tracking_extension.h
diff options
context:
space:
mode:
authorBastiaan Olij <mux213@gmail.com>2023-06-09 14:19:53 +1000
committerBastiaan Olij <mux213@gmail.com>2023-09-07 22:55:21 +1000
commit58df9bd8a4ed524944cd151a19b10184f51b295e (patch)
treea696c00f674fee00332b883e9b6f31f87131eafe /modules/openxr/extensions/openxr_hand_tracking_extension.h
parent8449592d92eaeef990f5502b419d491ee3eeb7a6 (diff)
downloadredot-engine-58df9bd8a4ed524944cd151a19b10184f51b295e.tar.gz
Expose OpenXR raw hand tracking data
Diffstat (limited to 'modules/openxr/extensions/openxr_hand_tracking_extension.h')
-rw-r--r--modules/openxr/extensions/openxr_hand_tracking_extension.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/openxr/extensions/openxr_hand_tracking_extension.h b/modules/openxr/extensions/openxr_hand_tracking_extension.h
index e86831e71b..99d315c525 100644
--- a/modules/openxr/extensions/openxr_hand_tracking_extension.h
+++ b/modules/openxr/extensions/openxr_hand_tracking_extension.h
@@ -32,6 +32,7 @@
#define OPENXR_HAND_TRACKING_EXTENSION_H
#include "../util.h"
+#include "core/math/quaternion.h"
#include "openxr_extension_wrapper.h"
#define MAX_OPENXR_TRACKED_HANDS 2
@@ -73,6 +74,13 @@ public:
XrHandJointsMotionRangeEXT get_motion_range(uint32_t p_hand) const;
void set_motion_range(uint32_t p_hand, XrHandJointsMotionRangeEXT p_motion_range);
+ Quaternion get_hand_joint_rotation(uint32_t p_hand, XrHandJointEXT p_joint) const;
+ Vector3 get_hand_joint_position(uint32_t p_hand, XrHandJointEXT p_joint) const;
+ float get_hand_joint_radius(uint32_t p_hand, XrHandJointEXT p_joint) const;
+
+ Vector3 get_hand_joint_linear_velocity(uint32_t p_hand, XrHandJointEXT p_joint) const;
+ Vector3 get_hand_joint_angular_velocity(uint32_t p_hand, XrHandJointEXT p_joint) const;
+
private:
static OpenXRHandTrackingExtension *singleton;