1
- [gd_scene load_steps =9 format =3 uid ="uid://y0j46ct8rv7f" ]
1
+ [gd_scene load_steps =18 format =3 uid ="uid://y0j46ct8rv7f" ]
2
2
3
3
[ext_resource type ="Script" path ="res://demo.gd" id ="1_3t01i" ]
4
4
[ext_resource type ="PackedScene" uid ="uid://cjcehqrfoxav3" path ="res://assets/gltf/LeftHandHumanoid.gltf" id ="2_qj6xm" ]
5
5
[ext_resource type ="PackedScene" uid ="uid://df5hynbooj1uj" path ="res://addons/hand_pose_detector/hand_pose_detector.tscn" id ="3_sea3p" ]
6
6
[ext_resource type ="Resource" uid ="uid://ckjd0xa2a240p" path ="res://addons/hand_pose_detector/poses/standard_pose_set.tres" id ="4_aw253" ]
7
7
[ext_resource type ="PackedScene" uid ="uid://dabmoo0spa6vg" path ="res://assets/gltf/RightHandHumanoid.gltf" id ="4_uvuof" ]
8
+ [ext_resource type ="PackedScene" uid ="uid://bh8isvqs258cp" path ="res://addons/hand_pose_detector/hand_pose_controller.tscn" id ="5_0abgo" ]
9
+ [ext_resource type ="Script" path ="res://addons/hand_pose_detector/hand_pose_action.gd" id ="7_ownji" ]
10
+ [ext_resource type ="Resource" uid ="uid://ra50ueubhepa" path ="res://addons/hand_pose_detector/poses/point_thumb_up.tres" id ="8_pcf64" ]
11
+ [ext_resource type ="Script" path ="res://addons/hand_pose_detector/hand_pose_action_set.gd" id ="9_ux58f" ]
8
12
9
13
[sub_resource type ="ProceduralSkyMaterial" id ="ProceduralSkyMaterial_gp80n" ]
10
14
sky_horizon_color = Color (0.64625 , 0.65575 , 0.67075 , 1 )
@@ -18,6 +22,40 @@ background_mode = 2
18
22
sky = SubResource ("Sky_wwtaq" )
19
23
tonemap_mode = 2
20
24
25
+ [sub_resource type ="Resource" id ="Resource_0u7th" ]
26
+ script = ExtResource ("7_ownji" )
27
+ pose = ExtResource ("8_pcf64" )
28
+ action_type = 0
29
+ action_name = "point_thumb_up"
30
+
31
+ [sub_resource type ="Resource" id ="Resource_0mgap" ]
32
+ script = ExtResource ("9_ux58f" )
33
+ actions = Array[ExtResource ("7_ownji" )]([SubResource ("Resource_0u7th" )])
34
+
35
+ [sub_resource type ="GDScript" id ="GDScript_tpxpg" ]
36
+ script/source = "extends XRController3D
37
+
38
+
39
+ # Called every frame. 'delta' is the elapsed time since the previous frame.
40
+ func _process (_delta : float ) -> void :
41
+ $ Aim .visible = is_button_pressed (\"point_thumb_up\")
42
+ "
43
+
44
+ [sub_resource type=" CapsuleMesh " id=" CapsuleMesh_oevpt "]
45
+ radius = 0.01
46
+ height = 0.05
47
+ radial_segments = 6
48
+ rings = 3
49
+
50
+ [sub_resource type=" GDScript " id=" GDScript_xq4qg "]
51
+ script/source = " extends XRController3D
52
+
53
+
54
+ # Called every frame. 'delta' is the elapsed time since the previous frame.
55
+ func _process (_delta : float ) -> void :
56
+ $ Aim .visible = is_button_pressed (\"point_thumb_up\")
57
+ "
58
+
21
59
[node name=" Demo " type=" Node3D "]
22
60
script = ExtResource(" 1_3 t01 i")
23
61
@@ -45,6 +83,11 @@ show_when_tracked = true
45
83
[node name=" LeftHandPose " parent=" XROrigin3D / LeftTrackedHand " instance=ExtResource(" 3_ sea3 p")]
46
84
hand_pose_set = ExtResource(" 4_ aw253 ")
47
85
86
+ [node name=" LeftHandPoseController " parent=" XROrigin3D / LeftTrackedHand / LeftHandPose " instance=ExtResource(" 5_0 abgo")]
87
+ tracker_name = " / user / hand_pose_controller / left "
88
+ pose_type = 1
89
+ action_set = SubResource(" Resource_0mgap ")
90
+
48
91
[node name=" RightTrackedHand " type=" XRNode3D " parent=" XROrigin3D "]
49
92
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.3, 1, 0)
50
93
tracker = &" / user / hand_tracker / right "
@@ -59,6 +102,29 @@ hand_tracker = &"/user/hand_tracker/right"
59
102
hand_pose_set = ExtResource(" 4_ aw253 ")
60
103
tracker_name = " / user / hand_tracker / right "
61
104
105
+ [node name=" RightHandPoseController " parent=" XROrigin3D / RightTrackedHand / RightHandPose " instance=ExtResource(" 5_0 abgo")]
106
+ tracker_name = " / user / hand_pose_controller / right "
107
+ pose_type = 1
108
+ action_set = SubResource(" Resource_0mgap ")
109
+
110
+ [node name=" LeftPoseController " type=" XRController3D " parent=" XROrigin3D "]
111
+ tracker = &" / user / hand_pose_controller / left "
112
+ script = SubResource(" GDScript_tpxpg ")
113
+
114
+ [node name=" Aim " type=" MeshInstance3D " parent=" XROrigin3D / LeftPoseController "]
115
+ transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0)
116
+ visible = false
117
+ mesh = SubResource(" CapsuleMesh_oevpt ")
118
+
119
+ [node name=" RightPoseController " type=" XRController3D " parent=" XROrigin3D "]
120
+ tracker = &" / user / hand_pose_controller / right "
121
+ script = SubResource(" GDScript_xq4qg ")
122
+
123
+ [node name=" Aim " type=" MeshInstance3D " parent=" XROrigin3D / RightPoseController "]
124
+ transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0)
125
+ visible = false
126
+ mesh = SubResource(" CapsuleMesh_oevpt ")
127
+
62
128
[node name=" LeftHandLabel " type=" Label3D " parent=" ."]
63
129
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1, 2, -3)
64
130
text = " Left Hand "
0 commit comments