[gd_scene load_steps=5 format=3 uid="uid://8fmy7u5fyonc"] [ext_resource type="Script" uid="uid://bf27rxigs8b22" path="res://scripts/XRHand.cs" id="1_gyc3h"] [ext_resource type="Script" uid="uid://dglj0x0bpkx5i" path="res://scripts/XrOrigin3d.cs" id="1_ucfva"] [sub_resource type="CapsuleMesh" id="CapsuleMesh_ij1v8"] radius = 0.1 height = 0.2 [sub_resource type="SphereShape3D" id="SphereShape3D_iyx0m"] radius = 0.01 [node name="XROrigin3D" type="XROrigin3D"] current = true script = ExtResource("1_ucfva") [node name="LeftHand" type="XRController3D" parent="."] tracker = &"left_hand" script = ExtResource("1_gyc3h") [node name="MeshInstance3D" type="MeshInstance3D" parent="LeftHand"] mesh = SubResource("CapsuleMesh_ij1v8") [node name="StaticBody3D" type="StaticBody3D" parent="LeftHand"] [node name="CollisionShape3D" type="CollisionShape3D" parent="LeftHand/StaticBody3D"] shape = SubResource("SphereShape3D_iyx0m") [node name="RightHand" type="XRController3D" parent="."] tracker = &"right_hand" [node name="MeshInstance3D" type="MeshInstance3D" parent="RightHand"] mesh = SubResource("CapsuleMesh_ij1v8") [node name="StaticBody3D" type="StaticBody3D" parent="RightHand"] [node name="CollisionShape3D" type="CollisionShape3D" parent="RightHand/StaticBody3D"] shape = SubResource("SphereShape3D_iyx0m") [node name="XRCamera3D" type="XRCamera3D" parent="."] [connection signal="button_pressed" from="LeftHand" to="LeftHand" method="OnPress"] [connection signal="button_released" from="LeftHand" to="LeftHand" method="OnRelease"] [connection signal="input_float_changed" from="LeftHand" to="LeftHand" method="OnFloat"]