test_compound_shapes.tscn 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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" path="res://test.gd" id="2"]
  4. [ext_resource type="Script" 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="RigidDynamicBody3D" 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. [node name="CollisionShape2" type="CollisionShape3D" parent="DynamicShapes/RigidBodyG"]
  18. transform = Transform3D(0.8, 0, 4.26326e-15, 0, 0.3, 0, -1.13687e-14, 0, 0.3, 0.3, -1.2, 0)
  19. shape = SubResource( "1" )
  20. [node name="CollisionShape3" type="CollisionShape3D" parent="DynamicShapes/RigidBodyG"]
  21. transform = Transform3D(-8.14603e-08, -0.3, 0, 0.5, -4.88762e-08, 0, 0, 0, 0.3, 0.8, -0.5, 0)
  22. shape = SubResource( "1" )
  23. [node name="CollisionShape4" type="CollisionShape3D" parent="DynamicShapes/RigidBodyG"]
  24. transform = Transform3D(0.8, 0, 4.26326e-15, 0, 0.3, 0, -1.13687e-14, 0, 0.3, 0.3, 1.2, 0)
  25. shape = SubResource( "1" )
  26. [node name="RigidBodyO" type="RigidDynamicBody3D" parent="DynamicShapes"]
  27. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.65654, 0, 0)
  28. [node name="CollisionShape1" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO"]
  29. transform = Transform3D(-2.44381e-07, -0.3, 0, 1.5, -4.88762e-08, 0, 0, 0, 0.3, -0.8, 0, 0)
  30. shape = SubResource( "1" )
  31. [node name="CollisionShape2" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO"]
  32. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, 1.2, 0)
  33. shape = SubResource( "1" )
  34. [node name="CollisionShape3" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO"]
  35. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, -1.2, 0)
  36. shape = SubResource( "1" )
  37. [node name="CollisionShape4" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO"]
  38. transform = Transform3D(-2.44381e-07, -0.3, 0, 1.5, -4.88762e-08, 0, 0, 0, 0.3, 0.8, 0, 0)
  39. shape = SubResource( "1" )
  40. [node name="RigidBodyD" type="RigidDynamicBody3D" parent="DynamicShapes"]
  41. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.248918, 0, 0)
  42. [node name="CollisionShape1" type="CollisionShape3D" parent="DynamicShapes/RigidBodyD"]
  43. transform = Transform3D(-2.44381e-07, -0.3, 0, 1.5, -4.88762e-08, 0, 0, 0, 0.3, -0.8, 0, 0)
  44. shape = SubResource( "1" )
  45. [node name="CollisionShape2" type="CollisionShape3D" parent="DynamicShapes/RigidBodyD"]
  46. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, 1.2, 0)
  47. shape = SubResource( "1" )
  48. [node name="CollisionShape3" type="CollisionShape3D" parent="DynamicShapes/RigidBodyD"]
  49. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, -1.2, 0)
  50. shape = SubResource( "1" )
  51. [node name="CollisionShape4" type="CollisionShape3D" parent="DynamicShapes/RigidBodyD"]
  52. transform = Transform3D(-1.46629e-07, -0.3, 0, 0.9, -4.88762e-08, 0, 0, 0, 0.3, 0.8, 0, 0)
  53. shape = SubResource( "1" )
  54. [node name="RigidBodyO2" type="RigidDynamicBody3D" parent="DynamicShapes"]
  55. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.97932, 0, 0)
  56. [node name="CollisionShape1" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO2"]
  57. transform = Transform3D(-2.44381e-07, -0.3, 0, 1.5, -4.88762e-08, 0, 0, 0, 0.3, -0.8, 0, 0)
  58. shape = SubResource( "1" )
  59. [node name="CollisionShape2" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO2"]
  60. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, 1.2, 0)
  61. shape = SubResource( "1" )
  62. [node name="CollisionShape3" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO2"]
  63. transform = Transform3D(0.5, 0, 4.26326e-15, 0, 0.3, 0, -7.10543e-15, 0, 0.3, 0, -1.2, 0)
  64. shape = SubResource( "1" )
  65. [node name="CollisionShape4" type="CollisionShape3D" parent="DynamicShapes/RigidBodyO2"]
  66. transform = Transform3D(-2.44381e-07, -0.3, 0, 1.5, -4.88762e-08, 0, 0, 0, 0.3, 0.8, 0, 0)
  67. shape = SubResource( "1" )
  68. [node name="RigidBodyT" type="RigidDynamicBody3D" parent="DynamicShapes"]
  69. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.46836, 0, 0)
  70. [node name="CollisionShape1" type="CollisionShape3D" parent="DynamicShapes/RigidBodyT"]
  71. transform = Transform3D(-1.95505e-07, -0.3, 0, 1.2, -4.88762e-08, 0, 0, 0, 0.3, 0, -0.3, 0)
  72. shape = SubResource( "1" )
  73. [node name="CollisionShape2" type="CollisionShape3D" parent="DynamicShapes/RigidBodyT"]
  74. transform = Transform3D(1, 0, 4.26326e-15, 0, 0.3, 0, -1.42109e-14, 0, 0.3, 0, 1.2, 0)
  75. shape = SubResource( "1" )
  76. [node name="StaticBodyPins" type="StaticBody3D" parent="."]
  77. [node name="CollisionShape" type="CollisionShape3D" parent="StaticBodyPins"]
  78. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 9.13207, 0)
  79. shape = SubResource( "2" )
  80. [node name="CollisionShape2" type="CollisionShape3D" parent="StaticBodyPins"]
  81. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, -2.71742, 9.13207, 0)
  82. shape = SubResource( "2" )
  83. [node name="CollisionShape3" type="CollisionShape3D" parent="StaticBodyPins"]
  84. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, -5.64188, 9.13207, 0)
  85. shape = SubResource( "2" )
  86. [node name="CollisionShape4" type="CollisionShape3D" parent="StaticBodyPins"]
  87. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 2.87444, 9.13207, 0)
  88. shape = SubResource( "2" )
  89. [node name="CollisionShape5" type="CollisionShape3D" parent="StaticBodyPins"]
  90. transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 4.81639, 9.13207, 0)
  91. shape = SubResource( "2" )
  92. [node name="StaticScene" parent="." instance=ExtResource( "1" )]
  93. [node name="Camera3D" type="Camera3D" parent="."]
  94. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.53602, 22.1236)
  95. script = ExtResource( "3" )
  96. [node name="OmniLight" type="OmniLight3D" parent="Camera3D"]
  97. omni_range = 50.0