test_compound_shapes.tscn 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. [gd_scene load_steps=6 format=3 uid="uid://b15gg5je5qdu4"]
  2. [ext_resource type="PackedScene" uid="uid://cl2vpuxqgnylc" path="res://tests/static_scene.tscn" id="1"]
  3. [ext_resource type="Script" uid="uid://cu0nmknf22ua2" path="res://test.gd" id="2"]
  4. [ext_resource type="Script" uid="uid://cx8vo58lobtgu" path="res://utils/camera_orbit.gd" id="3"]
  5. [sub_resource type="BoxShape3D" id="1"]
  6. [sub_resource type="CapsuleShape3D" id="2"]
  7. radius = 0.2
  8. [node name="Test" type="Node3D"]
  9. script = ExtResource("2")
  10. [node name="DynamicShapes" type="Node3D" parent="."]
  11. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9.35591, 0)
  12. [node name="RigidBodyG" type="RigidBody3D" parent="DynamicShapes"]
  13. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.51361, 0, 0)
  14. [node name="CollisionShape1" type="CollisionShape3D" parent="DynamicShapes/RigidBodyG"]
  15. transform = Transform3D(-2.44381e-07, -0.3, 0, 1.5, -4.88762e-08, 0, 0, 0, 0.3, -0.8, 0, 0)
  16. shape = SubResource("1")
  17. debug_color = Color(1, 1, 0, 1)
  18. [node name="CollisionShape2" type="CollisionShape3D" parent="DynamicShapes/RigidBodyG"]
  19. transform = Transform3D(0.8, 0, 4.26326e-15, 0, 0.3, 0, -1.13687e-14, 0, 0.3, 0.3, -1.2, 0)
  20. shape = SubResource("1")
  21. debug_color = Color(1, 1, 0, 1)
  22. [node name="CollisionShape3" type="CollisionShape3D" parent="DynamicShapes/RigidBodyG"]
  23. transform = Transform3D(-8.14603e-08, -0.3, 0, 0.5, -4.88762e-08, 0, 0, 0, 0.3, 0.8, -0.5, 0)
  24. shape = SubResource("1")
  25. debug_color = Color(1, 1, 0, 1)
  26. [node name="CollisionShape4" type="CollisionShape3D" parent="DynamicShapes/RigidBodyG"]
  27. transform = Transform3D(0.8, 0, 4.26326e-15, 0, 0.3, 0, -1.13687e-14, 0, 0.3, 0.3, 1.2, 0)
  28. shape = SubResource("1")
  29. debug_color = Color(1, 1, 0, 1)
  30. [node name="RigidBodyO" type="RigidBody3D" parent="DynamicShapes"]
  31. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.65654, 0, 0)
  32. [node name="CollisionShape1" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO"]
  33. transform = Transform3D(-2.44381e-07, -0.3, 0, 1.5, -4.88762e-08, 0, 0, 0, 0.3, -0.8, 0, 0)
  34. shape = SubResource("1")
  35. debug_color = Color(1, 1, 0, 1)
  36. [node name="CollisionShape2" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO"]
  37. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, 1.2, 0)
  38. shape = SubResource("1")
  39. debug_color = Color(1, 1, 0, 1)
  40. [node name="CollisionShape3" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO"]
  41. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, -1.2, 0)
  42. shape = SubResource("1")
  43. debug_color = Color(1, 1, 0, 1)
  44. [node name="CollisionShape4" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO"]
  45. transform = Transform3D(-2.44381e-07, -0.3, 0, 1.5, -4.88762e-08, 0, 0, 0, 0.3, 0.8, 0, 0)
  46. shape = SubResource("1")
  47. debug_color = Color(1, 1, 0, 1)
  48. [node name="RigidBodyD" type="RigidBody3D" parent="DynamicShapes"]
  49. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.248918, 0, 0)
  50. [node name="CollisionShape1" type="CollisionShape3D" parent="DynamicShapes/RigidBodyD"]
  51. transform = Transform3D(-2.44381e-07, -0.3, 0, 1.5, -4.88762e-08, 0, 0, 0, 0.3, -0.8, 0, 0)
  52. shape = SubResource("1")
  53. debug_color = Color(1, 1, 0, 1)
  54. [node name="CollisionShape2" type="CollisionShape3D" parent="DynamicShapes/RigidBodyD"]
  55. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, 1.2, 0)
  56. shape = SubResource("1")
  57. debug_color = Color(1, 1, 0, 1)
  58. [node name="CollisionShape3" type="CollisionShape3D" parent="DynamicShapes/RigidBodyD"]
  59. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, -1.2, 0)
  60. shape = SubResource("1")
  61. debug_color = Color(1, 1, 0, 1)
  62. [node name="CollisionShape4" type="CollisionShape3D" parent="DynamicShapes/RigidBodyD"]
  63. transform = Transform3D(-1.46629e-07, -0.3, 0, 0.9, -4.88762e-08, 0, 0, 0, 0.3, 0.8, 0, 0)
  64. shape = SubResource("1")
  65. debug_color = Color(1, 1, 0, 1)
  66. [node name="RigidBodyO2" type="RigidBody3D" parent="DynamicShapes"]
  67. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.97932, 0, 0)
  68. [node name="CollisionShape1" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO2"]
  69. transform = Transform3D(-2.44381e-07, -0.3, 0, 1.5, -4.88762e-08, 0, 0, 0, 0.3, -0.8, 0, 0)
  70. shape = SubResource("1")
  71. debug_color = Color(1, 1, 0, 1)
  72. [node name="CollisionShape2" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO2"]
  73. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, 1.2, 0)
  74. shape = SubResource("1")
  75. debug_color = Color(1, 1, 0, 1)
  76. [node name="CollisionShape3" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO2"]
  77. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, -1.2, 0)
  78. shape = SubResource("1")
  79. debug_color = Color(1, 1, 0, 1)
  80. [node name="CollisionShape4" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO2"]
  81. transform = Transform3D(-2.44381e-07, -0.3, 0, 1.5, -4.88762e-08, 0, 0, 0, 0.3, 0.8, 0, 0)
  82. shape = SubResource("1")
  83. debug_color = Color(1, 1, 0, 1)
  84. [node name="RigidBodyT" type="RigidBody3D" parent="DynamicShapes"]
  85. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.46836, 0, 0)
  86. [node name="CollisionShape1" type="CollisionShape3D" parent="DynamicShapes/RigidBodyT"]
  87. transform = Transform3D(-1.95505e-07, -0.3, 0, 1.2, -4.88762e-08, 0, 0, 0, 0.3, 0, -0.3, 0)
  88. shape = SubResource("1")
  89. debug_color = Color(1, 1, 0, 1)
  90. [node name="CollisionShape2" type="CollisionShape3D" parent="DynamicShapes/RigidBodyT"]
  91. transform = Transform3D(1, 0, 4.26326e-15, 0, 0.3, 0, -1.42109e-14, 0, 0.3, 0, 1.2, 0)
  92. shape = SubResource("1")
  93. debug_color = Color(1, 1, 0, 1)
  94. [node name="StaticBodyPins" type="StaticBody3D" parent="."]
  95. [node name="CollisionShape" type="CollisionShape3D" parent="StaticBodyPins"]
  96. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 9.13207, 0)
  97. shape = SubResource("2")
  98. debug_color = Color(0, 0.501961, 1, 1)
  99. [node name="CollisionShape2" type="CollisionShape3D" parent="StaticBodyPins"]
  100. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, -2.71742, 9.13207, 0)
  101. shape = SubResource("2")
  102. debug_color = Color(0, 0.501961, 1, 1)
  103. [node name="CollisionShape3" type="CollisionShape3D" parent="StaticBodyPins"]
  104. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, -5.64188, 9.13207, 0)
  105. shape = SubResource("2")
  106. debug_color = Color(0, 0.501961, 1, 1)
  107. [node name="CollisionShape4" type="CollisionShape3D" parent="StaticBodyPins"]
  108. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 2.87444, 9.13207, 0)
  109. shape = SubResource("2")
  110. debug_color = Color(0, 0.501961, 1, 1)
  111. [node name="CollisionShape5" type="CollisionShape3D" parent="StaticBodyPins"]
  112. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 4.81639, 9.13207, 0)
  113. shape = SubResource("2")
  114. debug_color = Color(0, 0.501961, 1, 1)
  115. [node name="StaticScene" parent="." instance=ExtResource("1")]
  116. [node name="Camera3D" type="Camera3D" parent="."]
  117. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.53602, 22.1236)
  118. script = ExtResource("3")