test_perf_contact_islands.tscn 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. [gd_scene load_steps=11 format=3 uid="uid://ctni5eafiy2bu"]
  2. [ext_resource type="Script" uid="uid://4kcl3sbrycms" path="res://tests/performance/test_perf_contacts.gd" id="1"]
  3. [ext_resource type="Script" uid="uid://cx8vo58lobtgu" path="res://utils/camera_orbit.gd" id="3"]
  4. [ext_resource type="PackedScene" uid="uid://b1ihqm3x8jru" path="res://tests/test_options.tscn" id="4"]
  5. [ext_resource type="PackedScene" uid="uid://cl2vpuxqgnylc" path="res://tests/static_scene.tscn" id="5"]
  6. [sub_resource type="BoxShape3D" id="1"]
  7. [sub_resource type="CapsuleShape3D" id="2"]
  8. [sub_resource type="CylinderShape3D" id="3"]
  9. [sub_resource type="ConvexPolygonShape3D" id="4"]
  10. points = PackedVector3Array(-0.7, 0, -0.7, -0.3, 0, 0.8, 0.8, 0, -0.3, 0, -1, 0)
  11. [sub_resource type="SphereShape3D" id="5"]
  12. [sub_resource type="WorldBoundaryShape3D" id="6"]
  13. [node name="Test" type="Node3D"]
  14. script = ExtResource("1")
  15. spawns = Array[NodePath]([NodePath("SpawnTarget1"), NodePath("SpawnTarget2"), NodePath("SpawnTarget3"), NodePath("SpawnTarget4"), NodePath("SpawnTarget5"), NodePath("SpawnTarget6"), NodePath("SpawnTarget7"), NodePath("SpawnTarget8"), NodePath("SpawnTarget9"), NodePath("SpawnTarget10"), NodePath("SpawnTarget11"), NodePath("SpawnTarget12"), NodePath("SpawnTarget13"), NodePath("SpawnTarget14"), NodePath("SpawnTarget15"), NodePath("SpawnTarget16")])
  16. spawn_count = 200
  17. spawn_randomize = Vector3(0.2, 0.2, 0.2)
  18. _enable_debug_collision = false
  19. [node name="Options" parent="." instance=ExtResource("4")]
  20. [node name="SpawnTarget1" type="Node3D" parent="."]
  21. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 7, -37.715)
  22. [node name="SpawnTarget2" type="Node3D" parent="."]
  23. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 7, -19.7248)
  24. [node name="SpawnTarget3" type="Node3D" parent="."]
  25. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21.4903, 7, -37.715)
  26. [node name="SpawnTarget4" type="Node3D" parent="."]
  27. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21.4903, 7, -19.7248)
  28. [node name="SpawnTarget5" type="Node3D" parent="."]
  29. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 7, 10.7172)
  30. [node name="SpawnTarget6" type="Node3D" parent="."]
  31. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 7, 28.7073)
  32. [node name="SpawnTarget7" type="Node3D" parent="."]
  33. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21.4903, 7, 10.7172)
  34. [node name="SpawnTarget8" type="Node3D" parent="."]
  35. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21.4903, 7, 28.7073)
  36. [node name="SpawnTarget9" type="Node3D" parent="."]
  37. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.8583, 7, 10.7172)
  38. [node name="SpawnTarget10" type="Node3D" parent="."]
  39. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.8583, 7, 28.7073)
  40. [node name="SpawnTarget11" type="Node3D" parent="."]
  41. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -38.368, 7, 10.7172)
  42. [node name="SpawnTarget12" type="Node3D" parent="."]
  43. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -38.368, 7, 28.7073)
  44. [node name="SpawnTarget13" type="Node3D" parent="."]
  45. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.8583, 7, -38.798)
  46. [node name="SpawnTarget14" type="Node3D" parent="."]
  47. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.8583, 7, -20.8078)
  48. [node name="SpawnTarget15" type="Node3D" parent="."]
  49. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -38.368, 7, -38.798)
  50. [node name="SpawnTarget16" type="Node3D" parent="."]
  51. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -38.368, 7, -20.8078)
  52. [node name="DynamicShapes" type="Node3D" parent="."]
  53. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -26.3192, 1.2359, 38.0117)
  54. [node name="RigidBodyBox" type="RigidBody3D" parent="DynamicShapes"]
  55. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyBox"]
  56. shape = SubResource("1")
  57. debug_color = Color(1, 1, 0, 1)
  58. [node name="RigidBodyCapsule" type="RigidBody3D" parent="DynamicShapes"]
  59. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0)
  60. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyCapsule"]
  61. shape = SubResource("2")
  62. debug_color = Color(1, 1, 0, 1)
  63. [node name="RigidBodyCylinder" type="RigidBody3D" parent="DynamicShapes"]
  64. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0)
  65. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyCylinder"]
  66. shape = SubResource("3")
  67. debug_color = Color(1, 1, 0, 1)
  68. [node name="RigidBodyConvex" type="RigidBody3D" parent="DynamicShapes"]
  69. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0)
  70. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyConvex"]
  71. transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
  72. shape = SubResource("4")
  73. debug_color = Color(1, 1, 0, 1)
  74. [node name="RigidBodySphere" type="RigidBody3D" parent="DynamicShapes"]
  75. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, 0)
  76. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodySphere"]
  77. shape = SubResource("5")
  78. debug_color = Color(1, 1, 0, 1)
  79. [node name="StaticScene" parent="." instance=ExtResource("5")]
  80. [node name="StaticBodyWalls" type="StaticBody3D" parent="."]
  81. [node name="CollisionShape1" type="CollisionShape3D" parent="StaticBodyWalls"]
  82. transform = Transform3D(-1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 0, 0, 1, -50, 0, 0)
  83. shape = SubResource("6")
  84. debug_color = Color(0, 0.533333, 1, 1)
  85. [node name="CollisionShape2" type="CollisionShape3D" parent="StaticBodyWalls"]
  86. transform = Transform3D(-1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0, 1, 50, 0, 0)
  87. shape = SubResource("6")
  88. debug_color = Color(0, 0.533333, 1, 1)
  89. [node name="CollisionShape3" type="CollisionShape3D" parent="StaticBodyWalls"]
  90. transform = Transform3D(2.6543e-14, 1.62921e-07, 1, 1, -1.62921e-07, 1.56125e-19, 1.62921e-07, 1, -1.62921e-07, 0, 0, -50)
  91. shape = SubResource("6")
  92. debug_color = Color(0, 0.533333, 1, 1)
  93. [node name="CollisionShape4" type="CollisionShape3D" parent="StaticBodyWalls"]
  94. transform = Transform3D(2.6543e-14, 1.62921e-07, -1, 1, -1.62921e-07, -1.56125e-19, -1.62921e-07, -1, -1.62921e-07, 0, 0, 50)
  95. shape = SubResource("6")
  96. debug_color = Color(0, 0.533333, 1, 1)
  97. [node name="Camera3D" type="Camera3D" parent="."]
  98. transform = Transform3D(1, 0, 0, 0, 0.881757, 0.471705, 0, -0.471705, 0.881757, 0, 20.4125, 41.0426)
  99. script = ExtResource("3")