test_perf_contacts.tscn 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. [gd_scene load_steps=11 format=3 uid="uid://4wsisagg0r7r"]
  2. [ext_resource type="PackedScene" uid="uid://cl2vpuxqgnylc" path="res://tests/static_scene.tscn" id="1"]
  3. [ext_resource type="Script" uid="uid://4kcl3sbrycms" path="res://tests/performance/test_perf_contacts.gd" id="2"]
  4. [ext_resource type="PackedScene" uid="uid://b1ihqm3x8jru" path="res://tests/test_options.tscn" id="4"]
  5. [ext_resource type="Script" uid="uid://cx8vo58lobtgu" path="res://utils/camera_orbit.gd" 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("2")
  15. spawns = Array[NodePath]([NodePath("SpawnTarget1")])
  16. spawn_count = 500
  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, 0, 7.06418, -1.24693)
  22. [node name="DynamicShapes" type="Node3D" parent="."]
  23. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -26.3192, 1.2359, 38.0117)
  24. [node name="RigidBodyBox" type="RigidBody3D" parent="DynamicShapes"]
  25. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyBox"]
  26. shape = SubResource("1")
  27. debug_color = Color(1, 1, 0, 1)
  28. [node name="RigidBodyCapsule" type="RigidBody3D" parent="DynamicShapes"]
  29. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0)
  30. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyCapsule"]
  31. shape = SubResource("2")
  32. debug_color = Color(1, 1, 0, 1)
  33. [node name="RigidBodyCylinder" type="RigidBody3D" parent="DynamicShapes"]
  34. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0)
  35. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyCylinder"]
  36. shape = SubResource("3")
  37. debug_color = Color(1, 1, 0, 1)
  38. [node name="RigidBodyConvex" type="RigidBody3D" parent="DynamicShapes"]
  39. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0)
  40. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyConvex"]
  41. shape = SubResource("4")
  42. debug_color = Color(1, 1, 0, 1)
  43. [node name="RigidBodySphere" type="RigidBody3D" parent="DynamicShapes"]
  44. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, 0)
  45. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodySphere"]
  46. shape = SubResource("5")
  47. debug_color = Color(1, 1, 0, 1)
  48. [node name="StaticBodyWalls" type="StaticBody3D" parent="."]
  49. [node name="CollisionShape1" type="CollisionShape3D" parent="StaticBodyWalls"]
  50. transform = Transform3D(-1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 0, 0, 1, -5, 0, 0)
  51. shape = SubResource("6")
  52. debug_color = Color(0, 0.533333, 1, 1)
  53. [node name="CollisionShape2" type="CollisionShape3D" parent="StaticBodyWalls"]
  54. transform = Transform3D(-1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0, 1, 5, 0, 0)
  55. shape = SubResource("6")
  56. debug_color = Color(0, 0.533333, 1, 1)
  57. [node name="CollisionShape3" type="CollisionShape3D" parent="StaticBodyWalls"]
  58. 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, -5)
  59. shape = SubResource("6")
  60. debug_color = Color(0, 0.533333, 1, 1)
  61. [node name="CollisionShape4" type="CollisionShape3D" parent="StaticBodyWalls"]
  62. 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, 5)
  63. shape = SubResource("6")
  64. debug_color = Color(0, 0.533333, 1, 1)
  65. [node name="StaticScene" parent="." instance=ExtResource("1")]
  66. [node name="Camera3D" type="Camera3D" parent="."]
  67. transform = Transform3D(1, 0, 0, 0, 0.881757, 0.471705, 0, -0.471705, 0.881757, 0, 20.4125, 41.0426)
  68. script = ExtResource("5")