main.tscn 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. [gd_scene load_steps=11 format=2]
  2. [ext_resource path="res://main.gd" type="Script" id=1]
  3. [ext_resource path="res://cube_6.png" type="Texture" 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="SpatialMaterial" id=3]
  13. params_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="SpatialMaterial" id=5]
  20. params_diffuse_mode = 1
  21. albedo_color = Color( 0.0266393, 0.292793, 1, 1 )
  22. roughness = 0.0
  23. [sub_resource type="SpatialMaterial" id=6]
  24. params_diffuse_mode = 1
  25. albedo_color = Color( 0.957031, 0.801627, 0.0921731, 1 )
  26. roughness = 0.0
  27. [sub_resource type="CubeMesh" id=7]
  28. size = Vector3( 4, 4, 4 )
  29. [sub_resource type="SpatialMaterial" id=8]
  30. params_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. margin_right = 1025.0
  37. margin_bottom = 602.0
  38. size_flags_horizontal = 3
  39. size_flags_vertical = 3
  40. [node name="Accelerometer" type="Label" parent="Control"]
  41. margin_right = 340.0
  42. margin_bottom = 14.0
  43. rect_scale = Vector2( 2, 2 )
  44. text = "Accelerometer"
  45. [node name="Magnetometer" type="Label" parent="Control"]
  46. margin_top = 30.0
  47. margin_right = 340.0
  48. margin_bottom = 44.0
  49. rect_scale = Vector2( 2, 2 )
  50. text = "Magnetometer"
  51. [node name="Gyroscope" type="Label" parent="Control"]
  52. margin_top = 60.0
  53. margin_right = 340.0
  54. margin_bottom = 74.0
  55. rect_scale = Vector2( 2, 2 )
  56. text = "Gyroscope"
  57. [node name="Camera" type="Camera" parent="."]
  58. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.285209, 0, 11.9833 )
  59. environment = SubResource( 1 )
  60. fov = 74.0
  61. near = 0.1
  62. [node name="Arrows" type="Spatial" parent="."]
  63. [node name="AccelerometerArrow" type="Spatial" parent="Arrows"]
  64. transform = Transform( 1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 0, 0, 0 )
  65. [node name="Bottom" type="MeshInstance" parent="Arrows/AccelerometerArrow"]
  66. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
  67. mesh = SubResource( 2 )
  68. material/0 = SubResource( 3 )
  69. [node name="Top" type="MeshInstance" parent="Arrows/AccelerometerArrow"]
  70. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0 )
  71. mesh = SubResource( 4 )
  72. material/0 = SubResource( 3 )
  73. [node name="MagnetoArrow" type="Spatial" parent="Arrows"]
  74. transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 )
  75. [node name="Bottom" type="MeshInstance" parent="Arrows/MagnetoArrow"]
  76. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
  77. mesh = SubResource( 2 )
  78. material/0 = SubResource( 5 )
  79. [node name="Top" type="MeshInstance" parent="Arrows/MagnetoArrow"]
  80. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0 )
  81. mesh = SubResource( 4 )
  82. material/0 = SubResource( 5 )
  83. [node name="NorthArrow" type="Spatial" parent="Arrows"]
  84. transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
  85. [node name="Bottom" type="MeshInstance" parent="Arrows/NorthArrow"]
  86. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0 )
  87. mesh = SubResource( 2 )
  88. material/0 = SubResource( 6 )
  89. [node name="Top" type="MeshInstance" parent="Arrows/NorthArrow"]
  90. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 0 )
  91. mesh = SubResource( 4 )
  92. material/0 = SubResource( 6 )
  93. [node name="Boxes" type="Spatial" parent="."]
  94. [node name="MagAndGrav" type="MeshInstance" parent="Boxes"]
  95. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -7, -4, 0 )
  96. mesh = SubResource( 7 )
  97. material/0 = SubResource( 8 )
  98. [node name="GyroAndGrav" type="MeshInstance" parent="Boxes"]
  99. transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 7, -4, 0 )
  100. mesh = SubResource( 7 )
  101. material/0 = SubResource( 8 )
  102. [node name="DirectionalLight" type="DirectionalLight" parent="."]
  103. transform = Transform( 0.884838, -0.329433, 0.329449, 0, 0.707124, 0.707089, -0.4659, -0.625659, 0.62569, 0, 4.69444, 0 )