Debian Codegraph @

doc/classes/XRHandTracker.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <class name="XRHandTracker" inherits="XRPositionalTracker" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A tracked hand in XR.
5 </brief_description>
6 <description>
7 A hand tracking system will create an instance of this object and add it to the [XRServer]. This tracking system will then obtain skeleton data, convert it to the Godot Humanoid hand skeleton and store this data on the [XRHandTracker] object.
8 Use [XRHandModifier3D] to animate a hand mesh using hand tracking data.
9 </description>
10 <tutorials>
11 <link title="XR documentation index">$DOCS_URL/tutorials/xr/index.html</link>
12 </tutorials>
13 <methods>
14 <method name="get_hand_joint_angular_velocity" qualifiers="const">
15 <return type="Vector3" />
16 <param index="0" name="joint" type="int" enum="XRHandTracker.HandJoint" />
17 <description>
18 Returns the angular velocity for the given hand joint.
19 </description>
20 </method>
21 <method name="get_hand_joint_flags" qualifiers="const">
22 <return type="int" enum="XRHandTracker.HandJointFlags" is_bitfield="true" />
23 <param index="0" name="joint" type="int" enum="XRHandTracker.HandJoint" />
24 <description>
25 Returns flags about the validity of the tracking data for the given hand joint.
26 </description>
27 </method>
28 <method name="get_hand_joint_linear_velocity" qualifiers="const">
29 <return type="Vector3" />
30 <param index="0" name="joint" type="int" enum="XRHandTracker.HandJoint" />
31 <description>
32 Returns the linear velocity for the given hand joint.
33 </description>
34 </method>
35 <method name="get_hand_joint_radius" qualifiers="const">
36 <return type="float" />
37 <param index="0" name="joint" type="int" enum="XRHandTracker.HandJoint" />
38 <description>
39 Returns the radius of the given hand joint.
40 </description>
41 </method>
42 <method name="get_hand_joint_transform" qualifiers="const">
43 <return type="Transform3D" />
44 <param index="0" name="joint" type="int" enum="XRHandTracker.HandJoint" />
45 <description>
46 Returns the transform for the given hand joint.
47 </description>
48 </method>
49 <method name="set_hand_joint_angular_velocity">
50 <return type="void" />
51 <param index="0" name="joint" type="int" enum="XRHandTracker.HandJoint" />
52 <param index="1" name="angular_velocity" type="Vector3" />
53 <description>
54 Sets the angular velocity for the given hand joint.
55 </description>
56 </method>
57 <method name="set_hand_joint_flags">
58 <return type="void" />
59 <param index="0" name="joint" type="int" enum="XRHandTracker.HandJoint" />
60 <param index="1" name="flags" type="int" enum="XRHandTracker.HandJointFlags" is_bitfield="true" />
61 <description>
62 Sets flags about the validity of the tracking data for the given hand joint.
63 </description>
64 </method>
65 <method name="set_hand_joint_linear_velocity">
66 <return type="void" />
67 <param index="0" name="joint" type="int" enum="XRHandTracker.HandJoint" />
68 <param index="1" name="linear_velocity" type="Vector3" />
69 <description>
70 Sets the linear velocity for the given hand joint.
71 </description>
72 </method>
73 <method name="set_hand_joint_radius">
74 <return type="void" />
75 <param index="0" name="joint" type="int" enum="XRHandTracker.HandJoint" />
76 <param index="1" name="radius" type="float" />
77 <description>
78 Sets the radius of the given hand joint.
79 </description>
80 </method>
81 <method name="set_hand_joint_transform">
82 <return type="void" />
83 <param index="0" name="joint" type="int" enum="XRHandTracker.HandJoint" />
84 <param index="1" name="transform" type="Transform3D" />
85 <description>
86 Sets the transform for the given hand joint.
87 </description>
88 </method>
89 </methods>
90 <members>
91 <member name="hand" type="int" setter="set_tracker_hand" getter="get_tracker_hand" overrides="XRPositionalTracker" enum="XRPositionalTracker.TrackerHand" default="1" />
92 <member name="hand_tracking_source" type="int" setter="set_hand_tracking_source" getter="get_hand_tracking_source" enum="XRHandTracker.HandTrackingSource" default="0">
93 The source of the hand tracking data.
94 </member>
95 <member name="has_tracking_data" type="bool" setter="set_has_tracking_data" getter="get_has_tracking_data" default="false">
96 If [code]true[/code], the hand tracking data is valid.
97 </member>
98 <member name="type" type="int" setter="set_tracker_type" getter="get_tracker_type" overrides="XRTracker" enum="XRServer.TrackerType" default="16" />
99 </members>
100 <constants>
101 <constant name="HAND_TRACKING_SOURCE_UNKNOWN" value="0" enum="HandTrackingSource">
102 The source of hand tracking data is unknown.
103 </constant>
104 <constant name="HAND_TRACKING_SOURCE_UNOBSTRUCTED" value="1" enum="HandTrackingSource">
105 The source of hand tracking data is unobstructed, meaning that an accurate method of hand tracking is used. These include optical hand tracking, data gloves, etc.
106 </constant>
107 <constant name="HAND_TRACKING_SOURCE_CONTROLLER" value="2" enum="HandTrackingSource">
108 The source of hand tracking data is a controller, meaning that joint positions are inferred from controller inputs.
109 </constant>
110 <constant name="HAND_TRACKING_SOURCE_NOT_TRACKED" value="3" enum="HandTrackingSource">
111 No hand tracking data is tracked, this either means the hand is obscured, the controller is turned off, or tracking is not supported for the current input type.
112 </constant>
113 <constant name="HAND_TRACKING_SOURCE_MAX" value="4" enum="HandTrackingSource">
114 Represents the size of the [enum HandTrackingSource] enum.
115 </constant>
116 <constant name="HAND_JOINT_PALM" value="0" enum="HandJoint">
117 Palm joint.
118 </constant>
119 <constant name="HAND_JOINT_WRIST" value="1" enum="HandJoint">
120 Wrist joint.
121 </constant>
122 <constant name="HAND_JOINT_THUMB_METACARPAL" value="2" enum="HandJoint">
123 Thumb metacarpal joint.
124 </constant>
125 <constant name="HAND_JOINT_THUMB_PHALANX_PROXIMAL" value="3" enum="HandJoint">
126 Thumb phalanx proximal joint.
127 </constant>
128 <constant name="HAND_JOINT_THUMB_PHALANX_DISTAL" value="4" enum="HandJoint">
129 Thumb phalanx distal joint.
130 </constant>
131 <constant name="HAND_JOINT_THUMB_TIP" value="5" enum="HandJoint">
132 Thumb tip joint.
133 </constant>
134 <constant name="HAND_JOINT_INDEX_FINGER_METACARPAL" value="6" enum="HandJoint">
135 Index finger metacarpal joint.
136 </constant>
137 <constant name="HAND_JOINT_INDEX_FINGER_PHALANX_PROXIMAL" value="7" enum="HandJoint">
138 Index finger phalanx proximal joint.
139 </constant>
140 <constant name="HAND_JOINT_INDEX_FINGER_PHALANX_INTERMEDIATE" value="8" enum="HandJoint">
141 Index finger phalanx intermediate joint.
142 </constant>
143 <constant name="HAND_JOINT_INDEX_FINGER_PHALANX_DISTAL" value="9" enum="HandJoint">
144 Index finger phalanx distal joint.
145 </constant>
146 <constant name="HAND_JOINT_INDEX_FINGER_TIP" value="10" enum="HandJoint">
147 Index finger tip joint.
148 </constant>
149 <constant name="HAND_JOINT_MIDDLE_FINGER_METACARPAL" value="11" enum="HandJoint">
150 Middle finger metacarpal joint.
151 </constant>
152 <constant name="HAND_JOINT_MIDDLE_FINGER_PHALANX_PROXIMAL" value="12" enum="HandJoint">
153 Middle finger phalanx proximal joint.
154 </constant>
155 <constant name="HAND_JOINT_MIDDLE_FINGER_PHALANX_INTERMEDIATE" value="13" enum="HandJoint">
156 Middle finger phalanx intermediate joint.
157 </constant>
158 <constant name="HAND_JOINT_MIDDLE_FINGER_PHALANX_DISTAL" value="14" enum="HandJoint">
159 Middle finger phalanx distal joint.
160 </constant>
161 <constant name="HAND_JOINT_MIDDLE_FINGER_TIP" value="15" enum="HandJoint">
162 Middle finger tip joint.
163 </constant>
164 <constant name="HAND_JOINT_RING_FINGER_METACARPAL" value="16" enum="HandJoint">
165 Ring finger metacarpal joint.
166 </constant>
167 <constant name="HAND_JOINT_RING_FINGER_PHALANX_PROXIMAL" value="17" enum="HandJoint">
168 Ring finger phalanx proximal joint.
169 </constant>
170 <constant name="HAND_JOINT_RING_FINGER_PHALANX_INTERMEDIATE" value="18" enum="HandJoint">
171 Ring finger phalanx intermediate joint.
172 </constant>
173 <constant name="HAND_JOINT_RING_FINGER_PHALANX_DISTAL" value="19" enum="HandJoint">
174 Ring finger phalanx distal joint.
175 </constant>
176 <constant name="HAND_JOINT_RING_FINGER_TIP" value="20" enum="HandJoint">
177 Ring finger tip joint.
178 </constant>
179 <constant name="HAND_JOINT_PINKY_FINGER_METACARPAL" value="21" enum="HandJoint">
180 Pinky finger metacarpal joint.
181 </constant>
182 <constant name="HAND_JOINT_PINKY_FINGER_PHALANX_PROXIMAL" value="22" enum="HandJoint">
183 Pinky finger phalanx proximal joint.
184 </constant>
185 <constant name="HAND_JOINT_PINKY_FINGER_PHALANX_INTERMEDIATE" value="23" enum="HandJoint">
186 Pinky finger phalanx intermediate joint.
187 </constant>
188 <constant name="HAND_JOINT_PINKY_FINGER_PHALANX_DISTAL" value="24" enum="HandJoint">
189 Pinky finger phalanx distal joint.
190 </constant>
191 <constant name="HAND_JOINT_PINKY_FINGER_TIP" value="25" enum="HandJoint">
192 Pinky finger tip joint.
193 </constant>
194 <constant name="HAND_JOINT_MAX" value="26" enum="HandJoint">
195 Represents the size of the [enum HandJoint] enum.
196 </constant>
197 <constant name="HAND_JOINT_FLAG_ORIENTATION_VALID" value="1" enum="HandJointFlags" is_bitfield="true">
198 The hand joint's orientation data is valid.
199 </constant>
200 <constant name="HAND_JOINT_FLAG_ORIENTATION_TRACKED" value="2" enum="HandJointFlags" is_bitfield="true">
201 The hand joint's orientation is actively tracked. May not be set if tracking has been temporarily lost.
202 </constant>
203 <constant name="HAND_JOINT_FLAG_POSITION_VALID" value="4" enum="HandJointFlags" is_bitfield="true">
204 The hand joint's position data is valid.
205 </constant>
206 <constant name="HAND_JOINT_FLAG_POSITION_TRACKED" value="8" enum="HandJointFlags" is_bitfield="true">
207 The hand joint's position is actively tracked. May not be set if tracking has been temporarily lost.
208 </constant>
209 <constant name="HAND_JOINT_FLAG_LINEAR_VELOCITY_VALID" value="16" enum="HandJointFlags" is_bitfield="true">
210 The hand joint's linear velocity data is valid.
211 </constant>
212 <constant name="HAND_JOINT_FLAG_ANGULAR_VELOCITY_VALID" value="32" enum="HandJointFlags" is_bitfield="true">
213 The hand joint's angular velocity data is valid.
214 </constant>
215 </constants>
216 </class>