main.tscn 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. [gd_scene load_steps=14 format=3 uid="uid://br3bss6kac8pa"]
  2. [ext_resource type="PackedScene" uid="uid://d22k0sp2hinew" path="res://assets/gltf/LeftHandHumanoid.gltf" id="2_3hxem"]
  3. [ext_resource type="Script" path="res://start_vr.gd" id="2_5rtkn"]
  4. [ext_resource type="PackedScene" uid="uid://dlswhmq6s52gu" path="res://assets/gltf/RightHandHumanoid.gltf" id="3_oifi1"]
  5. [ext_resource type="PackedScene" uid="uid://byif52d1xkl3u" path="res://pickup/pickup_handler.tscn" id="3_sg1io"]
  6. [ext_resource type="Texture2D" uid="uid://b1waowk6l76ap" path="res://assets/images/pattern.png" id="4_3x0ea"]
  7. [ext_resource type="PackedScene" uid="uid://dtabh705qyufu" path="res://hand_info.tscn" id="5_wlhtu"]
  8. [ext_resource type="PackedScene" uid="uid://hanl00aqvu7u" path="res://objects/table.tscn" id="6_rfmma"]
  9. [ext_resource type="PackedScene" uid="uid://cerkxyasq8t8b" path="res://objects/box.tscn" id="7_6sqt7"]
  10. [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_eyx45"]
  11. sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
  12. ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
  13. [sub_resource type="Sky" id="Sky_tsis2"]
  14. sky_material = SubResource("ProceduralSkyMaterial_eyx45")
  15. [sub_resource type="Environment" id="Environment_0xu52"]
  16. background_mode = 2
  17. sky = SubResource("Sky_tsis2")
  18. tonemap_mode = 2
  19. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dxr1t"]
  20. albedo_color = Color(0.187808, 0.607643, 0.279312, 1)
  21. albedo_texture = ExtResource("4_3x0ea")
  22. uv1_scale = Vector3(100, 100, 100)
  23. [sub_resource type="PlaneMesh" id="PlaneMesh_6hhse"]
  24. material = SubResource("StandardMaterial3D_dxr1t")
  25. size = Vector2(1000, 1000)
  26. subdivide_width = 10
  27. subdivide_depth = 10
  28. [node name="Main" type="Node3D"]
  29. [node name="StartVR" type="Node3D" parent="."]
  30. script = ExtResource("2_5rtkn")
  31. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  32. environment = SubResource("Environment_0xu52")
  33. [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
  34. transform = Transform3D(0.397904, -0.794516, 0.458712, 0, 0.499998, 0.866026, -0.917427, -0.344595, 0.198951, 0, 5, 0)
  35. directional_shadow_max_distance = 10.0
  36. [node name="Floor" type="MeshInstance3D" parent="."]
  37. mesh = SubResource("PlaneMesh_6hhse")
  38. [node name="RecenterInfo" type="Label3D" parent="Floor"]
  39. transform = Transform3D(0.59873, 0, 0.800951, 0, 1, 0, -0.800951, 0, 0.59873, -1.76283, 1.50033, -0.380399)
  40. pixel_size = 0.003
  41. text = "If you are not facing the table,
  42. recenter your headset.
  43. On Quest, hold the Meta button
  44. on your right controller
  45. for several seconds
  46. In SteamVR, open the menu and
  47. select recenter and follow
  48. instructions"
  49. [node name="Table" parent="." instance=ExtResource("6_rfmma")]
  50. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.5)
  51. [node name="Box01" parent="Table" instance=ExtResource("7_6sqt7")]
  52. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.941084, 0)
  53. [node name="Box02" parent="Table" instance=ExtResource("7_6sqt7")]
  54. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.13752, 0.941084, 0)
  55. [node name="Box03" parent="Table" instance=ExtResource("7_6sqt7")]
  56. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0746718, 1.06282, 0)
  57. [node name="LeftHandInfo" parent="Table" instance=ExtResource("5_wlhtu")]
  58. transform = Transform3D(0.939693, -0.085635, 0.331126, 0, 0.968147, 0.25038, -0.34202, -0.23528, 0.909761, -0.713026, 0.8718, -0.309953)
  59. [node name="RightHandInfo" parent="Table" instance=ExtResource("5_wlhtu")]
  60. transform = Transform3D(0.939693, 0.085635, -0.331126, 0, 0.968147, 0.25038, 0.34202, -0.23528, 0.909761, 0.278022, 0.8718, -0.381943)
  61. hand = 1
  62. [node name="XROrigin3D" type="XROrigin3D" parent="."]
  63. [node name="XRCamera3D" type="XRCamera3D" parent="XROrigin3D"]
  64. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.7, 0)
  65. [node name="LeftHandController" type="XRController3D" parent="XROrigin3D"]
  66. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 1, -0.5)
  67. tracker = &"left_hand"
  68. pose = &"pose"
  69. show_when_tracked = true
  70. [node name="PickupHandler" parent="XROrigin3D/LeftHandController" instance=ExtResource("3_sg1io")]
  71. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.05, 0, 0)
  72. pickup_action = "pickup"
  73. [node name="RightHandController" type="XRController3D" parent="XROrigin3D"]
  74. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 1, -0.5)
  75. tracker = &"right_hand"
  76. pose = &"pose"
  77. show_when_tracked = true
  78. [node name="PickupHandler" parent="XROrigin3D/RightHandController" instance=ExtResource("3_sg1io")]
  79. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.05, 0, 0)
  80. pickup_action = "pickup"
  81. [node name="LeftHandMesh" type="XRNode3D" parent="XROrigin3D"]
  82. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 1, -0.5)
  83. tracker = &"/user/hand_tracker/left"
  84. show_when_tracked = true
  85. [node name="LeftHandHumanoid2" parent="XROrigin3D/LeftHandMesh" instance=ExtResource("2_3hxem")]
  86. [node name="XRHandModifier3D" type="XRHandModifier3D" parent="XROrigin3D/LeftHandMesh/LeftHandHumanoid2/LeftHandHumanoid/Skeleton3D" index="1"]
  87. [node name="RightHandMesh" type="XRNode3D" parent="XROrigin3D"]
  88. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 1, -0.5)
  89. tracker = &"/user/hand_tracker/right"
  90. show_when_tracked = true
  91. [node name="RightHandHumanoid2" parent="XROrigin3D/RightHandMesh" instance=ExtResource("3_oifi1")]
  92. [node name="XRHandModifier3D" type="XRHandModifier3D" parent="XROrigin3D/RightHandMesh/RightHandHumanoid2/RightHandHumanoid/Skeleton3D" index="1"]
  93. hand_tracker = &"/user/hand_tracker/right"
  94. [editable path="XROrigin3D/LeftHandMesh/LeftHandHumanoid2"]
  95. [editable path="XROrigin3D/RightHandMesh/RightHandHumanoid2"]