Main.tscn 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. [gd_scene load_steps=3 format=3 uid="uid://didpkugc6cvxv"]
  2. [ext_resource type="Script" path="res://GestureArea.gd" id="1"]
  3. [ext_resource type="PackedScene" uid="uid://csyb8ij530w1l" path="res://CubeScene.tscn" id="2"]
  4. [node name="VBoxContainer" type="VBoxContainer"]
  5. anchors_preset = 15
  6. anchor_right = 1.0
  7. anchor_bottom = 1.0
  8. size_flags_horizontal = 0
  9. size_flags_vertical = 0
  10. [node name="HBoxContainer" type="HBoxContainer" parent="."]
  11. layout_mode = 2
  12. size_flags_horizontal = 3
  13. size_flags_vertical = 3
  14. [node name="SubViewportContainer" type="SubViewportContainer" parent="HBoxContainer"]
  15. layout_mode = 2
  16. size_flags_horizontal = 3
  17. size_flags_vertical = 3
  18. stretch = true
  19. script = ExtResource("1")
  20. target = NodePath("SubViewport/Node3D/MeshInstance3D")
  21. one_finger_rot_y = false
  22. two_fingers_rot_z = false
  23. two_fingers_zoom = false
  24. [node name="SubViewport" type="SubViewport" parent="HBoxContainer/SubViewportContainer"]
  25. own_world_3d = true
  26. transparent_bg = true
  27. handle_input_locally = false
  28. size = Vector2i(574, 322)
  29. render_target_update_mode = 4
  30. [node name="Node3D" parent="HBoxContainer/SubViewportContainer/SubViewport" instance=ExtResource("2")]
  31. [node name="Camera3D" parent="HBoxContainer/SubViewportContainer/SubViewport/Node3D" index="2"]
  32. current = true
  33. [node name="Label" type="Label" parent="HBoxContainer/SubViewportContainer"]
  34. layout_mode = 2
  35. text = "One-finger rot around X"
  36. [node name="ViewportContainer2" type="SubViewportContainer" parent="HBoxContainer"]
  37. layout_mode = 2
  38. size_flags_horizontal = 3
  39. size_flags_vertical = 3
  40. stretch = true
  41. script = ExtResource("1")
  42. target = NodePath("SubViewport/Node3D/MeshInstance3D")
  43. two_fingers_rot_z = false
  44. two_fingers_zoom = false
  45. [node name="SubViewport" type="SubViewport" parent="HBoxContainer/ViewportContainer2"]
  46. own_world_3d = true
  47. transparent_bg = true
  48. handle_input_locally = false
  49. size = Vector2i(574, 322)
  50. render_target_update_mode = 4
  51. [node name="Node3D" parent="HBoxContainer/ViewportContainer2/SubViewport" instance=ExtResource("2")]
  52. [node name="Camera3D" parent="HBoxContainer/ViewportContainer2/SubViewport/Node3D" index="2"]
  53. current = true
  54. [node name="Label2" type="Label" parent="HBoxContainer/ViewportContainer2"]
  55. layout_mode = 2
  56. text = "One-finger rot around X and Y"
  57. [node name="HBoxContainer2" type="HBoxContainer" parent="."]
  58. layout_mode = 2
  59. size_flags_horizontal = 3
  60. size_flags_vertical = 3
  61. [node name="SubViewportContainer" type="SubViewportContainer" parent="HBoxContainer2"]
  62. layout_mode = 2
  63. size_flags_horizontal = 3
  64. size_flags_vertical = 3
  65. stretch = true
  66. script = ExtResource("1")
  67. target = NodePath("SubViewport/Node3D/MeshInstance3D")
  68. two_fingers_zoom = false
  69. [node name="SubViewport" type="SubViewport" parent="HBoxContainer2/SubViewportContainer"]
  70. own_world_3d = true
  71. transparent_bg = true
  72. handle_input_locally = false
  73. size = Vector2i(574, 322)
  74. render_target_update_mode = 4
  75. [node name="Node3D" parent="HBoxContainer2/SubViewportContainer/SubViewport" instance=ExtResource("2")]
  76. [node name="Camera3D" parent="HBoxContainer2/SubViewportContainer/SubViewport/Node3D" index="2"]
  77. current = true
  78. [node name="Label3" type="Label" parent="HBoxContainer2/SubViewportContainer"]
  79. layout_mode = 2
  80. text = "One-finger X/Y rot + two-finger Z rot"
  81. [node name="ViewportContainer2" type="SubViewportContainer" parent="HBoxContainer2"]
  82. layout_mode = 2
  83. size_flags_horizontal = 3
  84. size_flags_vertical = 3
  85. stretch = true
  86. script = ExtResource("1")
  87. target = NodePath("SubViewport/Node3D/MeshInstance3D")
  88. [node name="SubViewport" type="SubViewport" parent="HBoxContainer2/ViewportContainer2"]
  89. own_world_3d = true
  90. transparent_bg = true
  91. handle_input_locally = false
  92. size = Vector2i(574, 322)
  93. render_target_update_mode = 4
  94. [node name="Node3D" parent="HBoxContainer2/ViewportContainer2/SubViewport" instance=ExtResource("2")]
  95. [node name="Camera3D" parent="HBoxContainer2/ViewportContainer2/SubViewport/Node3D" index="2"]
  96. current = true
  97. [node name="Label2" type="Label" parent="HBoxContainer2/ViewportContainer2"]
  98. layout_mode = 2
  99. text = "One-finger X/Y, two-finger Z + pinch"
  100. [editable path="HBoxContainer/SubViewportContainer/SubViewport/Node3D"]
  101. [editable path="HBoxContainer/ViewportContainer2/SubViewport/Node3D"]
  102. [editable path="HBoxContainer2/SubViewportContainer/SubViewport/Node3D"]
  103. [editable path="HBoxContainer2/ViewportContainer2/SubViewport/Node3D"]