main.tscn 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. [gd_scene load_steps=23 format=3 uid="uid://dlmfp2l58fl7r"]
  2. [ext_resource type="Script" path="res://main.gd" id="1_gakxv"]
  3. [ext_resource type="PackedScene" uid="uid://ctwfhsr53boeg" path="res://movement_hand_walk.tscn" id="2_5dofw"]
  4. [ext_resource type="PackedScene" uid="uid://b6bk2pj8vbj28" path="res://addons/godot-xr-tools/functions/movement_turn.tscn" id="2_wss5p"]
  5. [ext_resource type="PackedScene" uid="uid://dgncgj4b56r52" path="res://xr_tools_hand_pusher.tscn" id="3_bu4bl"]
  6. [ext_resource type="PackedScene" uid="uid://diyu06cw06syv" path="res://addons/godot-xr-tools/player/player_body.tscn" id="3_nu1c5"]
  7. [sub_resource type="BoxMesh" id="BoxMesh_qu5kw"]
  8. size = Vector3(0.1, 0.1, 0.1)
  9. [sub_resource type="BoxMesh" id="BoxMesh_w3gnw"]
  10. [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_uy2or"]
  11. data = PackedVector3Array(-0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5)
  12. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0x476"]
  13. albedo_color = Color(0.470588, 0.470588, 0.470588, 1)
  14. [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_upm0w"]
  15. data = PackedVector3Array(-0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5)
  16. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_3he1b"]
  17. albedo_color = Color(0.470588, 0.470588, 0.470588, 1)
  18. [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_xqpg3"]
  19. data = PackedVector3Array(-0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5)
  20. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ji0wy"]
  21. albedo_color = Color(0.470588, 0.470588, 0.470588, 1)
  22. [sub_resource type="BoxMesh" id="BoxMesh_vrlun"]
  23. [sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_fo386"]
  24. data = PackedVector3Array(-0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, -0.5, 0.5, -0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, 0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, 0.5, 0.5, -0.5, 0.5, -0.5, -0.5, -0.5, 0.5, -0.5, 0.5, 0.5, -0.5, -0.5, -0.5, -0.5, -0.5)
  25. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lkuru"]
  26. albedo_color = Color(0.470588, 0.470588, 0.470588, 1)
  27. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_htaqa"]
  28. albedo_color = Color(0.470588, 0.470588, 0.470588, 1)
  29. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_igg63"]
  30. albedo_color = Color(0.470588, 0.470588, 0.470588, 1)
  31. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gnw6w"]
  32. albedo_color = Color(0.470588, 0.470588, 0.470588, 1)
  33. [sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_3av0q"]
  34. [sub_resource type="Sky" id="Sky_01wgo"]
  35. sky_material = SubResource("PhysicalSkyMaterial_3av0q")
  36. [sub_resource type="Environment" id="Environment_67l88"]
  37. background_mode = 2
  38. sky = SubResource("Sky_01wgo")
  39. [node name="Main" type="Node3D"]
  40. script = ExtResource("1_gakxv")
  41. [node name="XROrigin3D" type="XROrigin3D" parent="."]
  42. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.15813, 0, -1.32179)
  43. [node name="XRCamera3D" type="XRCamera3D" parent="XROrigin3D"]
  44. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
  45. [node name="LeftHandController" type="XRController3D" parent="XROrigin3D"]
  46. tracker = &"left_hand"
  47. pose = &"grip"
  48. [node name="MeshInstance3D" type="MeshInstance3D" parent="XROrigin3D/LeftHandController"]
  49. visible = false
  50. mesh = SubResource("BoxMesh_qu5kw")
  51. [node name="MovementTurn" parent="XROrigin3D/LeftHandController" instance=ExtResource("2_wss5p")]
  52. [node name="XRToolsHandPusher" parent="XROrigin3D/LeftHandController" instance=ExtResource("3_bu4bl")]
  53. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.15813, 0, -1.32179)
  54. [node name="RightHandController" type="XRController3D" parent="XROrigin3D"]
  55. tracker = &"right_hand"
  56. pose = &"grip"
  57. [node name="MeshInstance3D" type="MeshInstance3D" parent="XROrigin3D/RightHandController"]
  58. visible = false
  59. mesh = SubResource("BoxMesh_qu5kw")
  60. [node name="MovementTurn" parent="XROrigin3D/RightHandController" instance=ExtResource("2_wss5p")]
  61. [node name="XRToolsHandPusher" parent="XROrigin3D/RightHandController" instance=ExtResource("3_bu4bl")]
  62. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.15813, 0, -1.32179)
  63. [node name="PlayerBody" parent="XROrigin3D" instance=ExtResource("3_nu1c5")]
  64. [node name="XRToolsMovementHandWalk" parent="XROrigin3D" instance=ExtResource("2_5dofw")]
  65. fling_multiplier = 0.5
  66. grav = 5.0
  67. velocity_averages = 8
  68. [node name="Env" type="Node3D" parent="."]
  69. [node name="MeshInstance3D" type="MeshInstance3D" parent="Env"]
  70. transform = Transform3D(18.3107, 0, 0, 0, 0.556596, 0, 0, 0, 20.9464, 0, -0.245449, 0)
  71. mesh = SubResource("BoxMesh_w3gnw")
  72. skeleton = NodePath("../..")
  73. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D"]
  74. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D/StaticBody3D"]
  75. shape = SubResource("ConcavePolygonShape3D_uy2or")
  76. [node name="MeshInstance3D2" type="MeshInstance3D" parent="Env"]
  77. transform = Transform3D(2.47872, 0, 2.5691, 0, 0.0634879, 0, -2.51963, 0, 2.52738, -4.68012, 1.64047, -1.97756)
  78. material_override = SubResource("StandardMaterial3D_0x476")
  79. mesh = SubResource("BoxMesh_w3gnw")
  80. skeleton = NodePath("../..")
  81. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D2"]
  82. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D2/StaticBody3D"]
  83. shape = SubResource("ConcavePolygonShape3D_upm0w")
  84. [node name="MeshInstance3D3" type="MeshInstance3D" parent="Env"]
  85. transform = Transform3D(2.46297, 0, -2.5848, 0, 0.0634879, 0, 2.53503, 0, 2.51133, 3.38194, 1.63149, -4.23538)
  86. material_override = SubResource("StandardMaterial3D_3he1b")
  87. mesh = SubResource("BoxMesh_w3gnw")
  88. skeleton = NodePath("../..")
  89. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D3"]
  90. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D3/StaticBody3D"]
  91. shape = SubResource("ConcavePolygonShape3D_xqpg3")
  92. [node name="MeshInstance3D4" type="MeshInstance3D" parent="Env"]
  93. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.87752, 0.416141, -1.25583)
  94. material_override = SubResource("StandardMaterial3D_ji0wy")
  95. mesh = SubResource("BoxMesh_vrlun")
  96. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D4"]
  97. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D4/StaticBody3D"]
  98. shape = SubResource("ConcavePolygonShape3D_fo386")
  99. [node name="MeshInstance3D5" type="MeshInstance3D" parent="Env"]
  100. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.02324, 0.416141, -1.33233)
  101. material_override = SubResource("StandardMaterial3D_lkuru")
  102. mesh = SubResource("BoxMesh_vrlun")
  103. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D5"]
  104. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D5/StaticBody3D"]
  105. shape = SubResource("ConcavePolygonShape3D_fo386")
  106. [node name="MeshInstance3D12" type="MeshInstance3D" parent="Env"]
  107. transform = Transform3D(1, 0, 0, 0, 9.40707, 0, 0, 0, 1, 3.87641, 4.5077, 3.73279)
  108. material_override = SubResource("StandardMaterial3D_lkuru")
  109. mesh = SubResource("BoxMesh_vrlun")
  110. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D12"]
  111. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D12/StaticBody3D"]
  112. shape = SubResource("ConcavePolygonShape3D_fo386")
  113. [node name="MeshInstance3D13" type="MeshInstance3D" parent="Env"]
  114. transform = Transform3D(1, 0, 0, 0, 9.40707, 0, 0, 0, 1, 3.87641, 4.5077, 3.73279)
  115. material_override = SubResource("StandardMaterial3D_lkuru")
  116. mesh = SubResource("BoxMesh_vrlun")
  117. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D13"]
  118. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D13/StaticBody3D"]
  119. shape = SubResource("ConcavePolygonShape3D_fo386")
  120. [node name="MeshInstance3D14" type="MeshInstance3D" parent="Env"]
  121. transform = Transform3D(1, 0, 0, 0, 9.40707, 0, 0, 0, 1, 1.70149, 4.5077, 3.73279)
  122. material_override = SubResource("StandardMaterial3D_lkuru")
  123. mesh = SubResource("BoxMesh_vrlun")
  124. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D14"]
  125. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D14/StaticBody3D"]
  126. shape = SubResource("ConcavePolygonShape3D_fo386")
  127. [node name="MeshInstance3D9" type="MeshInstance3D" parent="Env"]
  128. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.52848, 0.416141, 5.41579)
  129. material_override = SubResource("StandardMaterial3D_lkuru")
  130. mesh = SubResource("BoxMesh_vrlun")
  131. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D9"]
  132. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D9/StaticBody3D"]
  133. shape = SubResource("ConcavePolygonShape3D_fo386")
  134. [node name="MeshInstance3D10" type="MeshInstance3D" parent="Env"]
  135. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.11206, 0.416141, 8.1059)
  136. material_override = SubResource("StandardMaterial3D_lkuru")
  137. mesh = SubResource("BoxMesh_vrlun")
  138. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D10"]
  139. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D10/StaticBody3D"]
  140. shape = SubResource("ConcavePolygonShape3D_fo386")
  141. [node name="MeshInstance3D11" type="MeshInstance3D" parent="Env"]
  142. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.08117, 0.416141, 6.24514)
  143. material_override = SubResource("StandardMaterial3D_lkuru")
  144. mesh = SubResource("BoxMesh_vrlun")
  145. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D11"]
  146. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D11/StaticBody3D"]
  147. shape = SubResource("ConcavePolygonShape3D_fo386")
  148. [node name="MeshInstance3D6" type="MeshInstance3D" parent="Env"]
  149. transform = Transform3D(1, 0, 0, 0, 1.99265, 0, 0, 0, 1, 1.35309, 0.416141, -2.23491)
  150. material_override = SubResource("StandardMaterial3D_htaqa")
  151. mesh = SubResource("BoxMesh_vrlun")
  152. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D6"]
  153. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D6/StaticBody3D"]
  154. shape = SubResource("ConcavePolygonShape3D_fo386")
  155. [node name="MeshInstance3D7" type="MeshInstance3D" parent="Env"]
  156. transform = Transform3D(1, 0, 0, 0, 1.99265, 0, 0, 0, 1, -1.68826, 0.199685, -2.37954)
  157. material_override = SubResource("StandardMaterial3D_igg63")
  158. mesh = SubResource("BoxMesh_vrlun")
  159. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D7"]
  160. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D7/StaticBody3D"]
  161. shape = SubResource("ConcavePolygonShape3D_fo386")
  162. [node name="MeshInstance3D8" type="MeshInstance3D" parent="Env"]
  163. transform = Transform3D(1, 0, 0, 0, 1.99265, 0, 0, 0, 1, -0.235145, 0.199685, -3.74581)
  164. material_override = SubResource("StandardMaterial3D_gnw6w")
  165. mesh = SubResource("BoxMesh_vrlun")
  166. [node name="StaticBody3D" type="StaticBody3D" parent="Env/MeshInstance3D8"]
  167. [node name="CollisionShape3D" type="CollisionShape3D" parent="Env/MeshInstance3D8/StaticBody3D"]
  168. shape = SubResource("ConcavePolygonShape3D_fo386")
  169. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  170. environment = SubResource("Environment_67l88")
  171. [node name="DirectionalLight3D" type="DirectionalLight3D" parent="WorldEnvironment"]
  172. transform = Transform3D(0.930577, 0.291382, 0.221636, 0, -0.605405, 0.795918, 0.366095, -0.740663, -0.563376, 0, 2.90989, 0)
  173. shadow_enabled = true