main.tscn 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. [gd_scene load_steps=11 format=3 uid="uid://cfhql05dj6udh"]
  2. [ext_resource type="Script" path="res://main.gd" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://yba5kdfjgn65" path="res://cube_6.png" id="2"]
  4. [sub_resource type="Environment" id="1"]
  5. background_mode = 1
  6. ambient_light_color = Color(0.648438, 0.64578, 0.64578, 1)
  7. [sub_resource type="CylinderMesh" id="2"]
  8. top_radius = 0.2
  9. bottom_radius = 0.1
  10. height = 4.0
  11. radial_segments = 16
  12. [sub_resource type="StandardMaterial3D" id="3"]
  13. diffuse_mode = 1
  14. albedo_color = Color(0.356557, 1, 0.366611, 1)
  15. roughness = 0.0
  16. [sub_resource type="CylinderMesh" id="4"]
  17. top_radius = 0.1
  18. radial_segments = 16
  19. [sub_resource type="StandardMaterial3D" id="5"]
  20. diffuse_mode = 1
  21. albedo_color = Color(0.0266393, 0.292793, 1, 1)
  22. roughness = 0.0
  23. [sub_resource type="StandardMaterial3D" id="6"]
  24. diffuse_mode = 1
  25. albedo_color = Color(0.957031, 0.801627, 0.0921731, 1)
  26. roughness = 0.0
  27. [sub_resource type="BoxMesh" id="7"]
  28. size = Vector3(4, 4, 4)
  29. [sub_resource type="StandardMaterial3D" id="8"]
  30. diffuse_mode = 1
  31. albedo_texture = ExtResource("2")
  32. roughness = 0.0
  33. [node name="Main" type="Node"]
  34. script = ExtResource("1")
  35. [node name="Control" type="Control" parent="."]
  36. layout_mode = 3
  37. anchors_preset = 0
  38. offset_right = 1025.0
  39. offset_bottom = 602.0
  40. size_flags_horizontal = 3
  41. size_flags_vertical = 3
  42. [node name="GridContainer" type="GridContainer" parent="Control"]
  43. offset_right = 40.0
  44. offset_bottom = 40.0
  45. columns = 4
  46. [node name="LabelEmpty" type="Label" parent="Control/GridContainer"]
  47. layout_mode = 2
  48. [node name="LabelX" type="Label" parent="Control/GridContainer"]
  49. layout_mode = 2
  50. theme_override_colors/font_color = Color(0.666667, 0.666667, 0.666667, 1)
  51. text = "X"
  52. horizontal_alignment = 1
  53. [node name="LabelY" type="Label" parent="Control/GridContainer"]
  54. layout_mode = 2
  55. theme_override_colors/font_color = Color(0.666667, 0.666667, 0.666667, 1)
  56. text = "Y"
  57. horizontal_alignment = 1
  58. [node name="LabelZ" type="Label" parent="Control/GridContainer"]
  59. layout_mode = 2
  60. theme_override_colors/font_color = Color(0.666667, 0.666667, 0.666667, 1)
  61. text = "Z"
  62. horizontal_alignment = 1
  63. [node name="Accelerometer" type="Label" parent="Control/GridContainer"]
  64. layout_mode = 2
  65. theme_override_colors/font_color = Color(0.666667, 0.666667, 0.666667, 1)
  66. text = "Accelerometer"
  67. [node name="AccX" type="Label" parent="Control/GridContainer"]
  68. unique_name_in_owner = true
  69. custom_minimum_size = Vector2(90, 2.08165e-12)
  70. layout_mode = 2
  71. text = "0"
  72. horizontal_alignment = 1
  73. [node name="AccY" type="Label" parent="Control/GridContainer"]
  74. unique_name_in_owner = true
  75. custom_minimum_size = Vector2(90, 2.08165e-12)
  76. layout_mode = 2
  77. text = "0"
  78. horizontal_alignment = 1
  79. [node name="AccZ" type="Label" parent="Control/GridContainer"]
  80. unique_name_in_owner = true
  81. custom_minimum_size = Vector2(90, 2.08165e-12)
  82. layout_mode = 2
  83. text = "0"
  84. horizontal_alignment = 1
  85. [node name="Gravity" type="Label" parent="Control/GridContainer"]
  86. layout_mode = 2
  87. theme_override_colors/font_color = Color(0.666667, 0.666667, 0.666667, 1)
  88. text = "Gravity"
  89. [node name="GravX" type="Label" parent="Control/GridContainer"]
  90. unique_name_in_owner = true
  91. layout_mode = 2
  92. text = "0"
  93. horizontal_alignment = 1
  94. [node name="GravY" type="Label" parent="Control/GridContainer"]
  95. unique_name_in_owner = true
  96. layout_mode = 2
  97. text = "0"
  98. horizontal_alignment = 1
  99. [node name="GravZ" type="Label" parent="Control/GridContainer"]
  100. unique_name_in_owner = true
  101. layout_mode = 2
  102. text = "0"
  103. horizontal_alignment = 1
  104. [node name="Magnetometer" type="Label" parent="Control/GridContainer"]
  105. layout_mode = 2
  106. theme_override_colors/font_color = Color(0.666667, 0.666667, 0.666667, 1)
  107. text = "Magnetometer"
  108. [node name="MagX" type="Label" parent="Control/GridContainer"]
  109. unique_name_in_owner = true
  110. layout_mode = 2
  111. text = "0"
  112. horizontal_alignment = 1
  113. [node name="MagY" type="Label" parent="Control/GridContainer"]
  114. unique_name_in_owner = true
  115. layout_mode = 2
  116. text = "0"
  117. horizontal_alignment = 1
  118. [node name="MagZ" type="Label" parent="Control/GridContainer"]
  119. unique_name_in_owner = true
  120. layout_mode = 2
  121. text = "0"
  122. horizontal_alignment = 1
  123. [node name="Gyroscope" type="Label" parent="Control/GridContainer"]
  124. layout_mode = 2
  125. theme_override_colors/font_color = Color(0.666667, 0.666667, 0.666667, 1)
  126. text = "Gyroscope"
  127. [node name="GyroX" type="Label" parent="Control/GridContainer"]
  128. unique_name_in_owner = true
  129. layout_mode = 2
  130. text = "0"
  131. horizontal_alignment = 1
  132. [node name="GyroY" type="Label" parent="Control/GridContainer"]
  133. unique_name_in_owner = true
  134. layout_mode = 2
  135. text = "0"
  136. horizontal_alignment = 1
  137. [node name="GyroZ" type="Label" parent="Control/GridContainer"]
  138. unique_name_in_owner = true
  139. layout_mode = 2
  140. text = "0"
  141. horizontal_alignment = 1
  142. [node name="Camera3D" type="Camera3D" parent="."]
  143. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.285209, 0, 11.9833)
  144. environment = SubResource("1")
  145. fov = 74.0
  146. near = 0.1
  147. [node name="Arrows" type="Node3D" parent="."]
  148. [node name="AccelerometerArrow" type="Node3D" parent="Arrows"]
  149. transform = Transform3D(1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 0, 0, 0)
  150. [node name="Bottom" type="MeshInstance3D" parent="Arrows/AccelerometerArrow"]
  151. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
  152. mesh = SubResource("2")
  153. surface_material_override/0 = SubResource("3")
  154. [node name="Top" type="MeshInstance3D" parent="Arrows/AccelerometerArrow"]
  155. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0)
  156. mesh = SubResource("4")
  157. surface_material_override/0 = SubResource("3")
  158. [node name="MagnetoArrow" type="Node3D" parent="Arrows"]
  159. transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0)
  160. [node name="Bottom" type="MeshInstance3D" parent="Arrows/MagnetoArrow"]
  161. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
  162. mesh = SubResource("2")
  163. surface_material_override/0 = SubResource("5")
  164. [node name="Top" type="MeshInstance3D" parent="Arrows/MagnetoArrow"]
  165. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0)
  166. mesh = SubResource("4")
  167. surface_material_override/0 = SubResource("5")
  168. [node name="NorthArrow" type="Node3D" parent="Arrows"]
  169. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
  170. [node name="Bottom" type="MeshInstance3D" parent="Arrows/NorthArrow"]
  171. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
  172. mesh = SubResource("2")
  173. surface_material_override/0 = SubResource("6")
  174. [node name="Top" type="MeshInstance3D" parent="Arrows/NorthArrow"]
  175. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0)
  176. mesh = SubResource("4")
  177. surface_material_override/0 = SubResource("6")
  178. [node name="Boxes" type="Node3D" parent="."]
  179. [node name="MagAndGrav" type="MeshInstance3D" parent="Boxes"]
  180. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7, -4, 0)
  181. mesh = SubResource("7")
  182. surface_material_override/0 = SubResource("8")
  183. [node name="GyroAndGrav" type="MeshInstance3D" parent="Boxes"]
  184. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7, -4, 0)
  185. mesh = SubResource("7")
  186. surface_material_override/0 = SubResource("8")
  187. [node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
  188. transform = Transform3D(0.884838, -0.329433, 0.329449, 0, 0.707124, 0.707089, -0.4659, -0.625659, 0.62569, 0, 4.69444, 0)