test_perf_contacts.tscn 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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" 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" 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. _enable_debug_collision = false
  16. spawns = ["SpawnTarget1"]
  17. spawn_count = 500
  18. spawn_randomize = Vector3(0.2, 0.2, 0.2)
  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="RigidDynamicBody3D" parent="DynamicShapes"]
  25. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyBox"]
  26. shape = SubResource( "1" )
  27. [node name="RigidBodyCapsule" type="RigidDynamicBody3D" parent="DynamicShapes"]
  28. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0)
  29. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyCapsule"]
  30. shape = SubResource( "2" )
  31. [node name="RigidBodyCylinder" type="RigidDynamicBody3D" parent="DynamicShapes"]
  32. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0)
  33. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyCylinder"]
  34. shape = SubResource( "3" )
  35. [node name="RigidBodyConvex" type="RigidDynamicBody3D" parent="DynamicShapes"]
  36. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0)
  37. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyConvex"]
  38. shape = SubResource( "4" )
  39. [node name="RigidBodySphere" type="RigidDynamicBody3D" parent="DynamicShapes"]
  40. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, 0)
  41. [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodySphere"]
  42. shape = SubResource( "5" )
  43. [node name="StaticBodyWalls" type="StaticBody3D" parent="."]
  44. [node name="CollisionShape1" type="CollisionShape3D" parent="StaticBodyWalls"]
  45. transform = Transform3D(-1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 0, 0, 1, -5, 0, 0)
  46. shape = SubResource( "6" )
  47. [node name="CollisionShape2" type="CollisionShape3D" parent="StaticBodyWalls"]
  48. transform = Transform3D(-1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0, 1, 5, 0, 0)
  49. shape = SubResource( "6" )
  50. [node name="CollisionShape3" type="CollisionShape3D" parent="StaticBodyWalls"]
  51. 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)
  52. shape = SubResource( "6" )
  53. [node name="CollisionShape4" type="CollisionShape3D" parent="StaticBodyWalls"]
  54. 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)
  55. shape = SubResource( "6" )
  56. [node name="StaticScene" parent="." instance=ExtResource( "1" )]
  57. [node name="Camera3D" type="Camera3D" parent="."]
  58. transform = Transform3D(1, 0, 0, 0, 0.881757, 0.471705, 0, -0.471705, 0.881757, 0, 20.4125, 41.0426)
  59. script = ExtResource( "5" )
  60. [node name="OmniLight" type="OmniLight3D" parent="Camera3D"]
  61. omni_range = 80.0