123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- [gd_scene load_steps=11 format=3 uid="uid://ctni5eafiy2bu"]
- [ext_resource type="Script" path="res://tests/performance/test_perf_contacts.gd" id="1"]
- [ext_resource type="Script" path="res://utils/camera_orbit.gd" id="3"]
- [ext_resource type="PackedScene" uid="uid://b1ihqm3x8jru" path="res://tests/test_options.tscn" id="4"]
- [ext_resource type="PackedScene" uid="uid://cl2vpuxqgnylc" path="res://tests/static_scene.tscn" id="5"]
- [sub_resource type="BoxShape3D" id="1"]
- [sub_resource type="CapsuleShape3D" id="2"]
- [sub_resource type="CylinderShape3D" id="3"]
- [sub_resource type="ConvexPolygonShape3D" id="4"]
- points = PackedVector3Array(-0.7, 0, -0.7, -0.3, 0, 0.8, 0.8, 0, -0.3, 0, -1, 0)
- [sub_resource type="SphereShape3D" id="5"]
- radius = 0.5
- [sub_resource type="WorldBoundaryShape3D" id="6"]
- [node name="Test" type="Node3D"]
- script = ExtResource( "1" )
- _enable_debug_collision = false
- spawns = ["SpawnTarget1", "SpawnTarget2", "SpawnTarget3", "SpawnTarget4", "SpawnTarget5", "SpawnTarget6", "SpawnTarget7", "SpawnTarget8", "SpawnTarget9", "SpawnTarget10", "SpawnTarget11", "SpawnTarget12", "SpawnTarget13", "SpawnTarget14", "SpawnTarget15", "SpawnTarget16"]
- spawn_count = 200
- spawn_randomize = Vector3(0.2, 0.2, 0.2)
- [node name="Options" parent="." instance=ExtResource( "4" )]
- [node name="SpawnTarget1" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 7, -37.715)
- [node name="SpawnTarget2" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 7, -19.7248)
- [node name="SpawnTarget3" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21.4903, 7, -37.715)
- [node name="SpawnTarget4" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21.4903, 7, -19.7248)
- [node name="SpawnTarget5" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 7, 10.7172)
- [node name="SpawnTarget6" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 7, 28.7073)
- [node name="SpawnTarget7" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21.4903, 7, 10.7172)
- [node name="SpawnTarget8" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 21.4903, 7, 28.7073)
- [node name="SpawnTarget9" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.8583, 7, 10.7172)
- [node name="SpawnTarget10" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.8583, 7, 28.7073)
- [node name="SpawnTarget11" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -38.368, 7, 10.7172)
- [node name="SpawnTarget12" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -38.368, 7, 28.7073)
- [node name="SpawnTarget13" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.8583, 7, -38.798)
- [node name="SpawnTarget14" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.8583, 7, -20.8078)
- [node name="SpawnTarget15" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -38.368, 7, -38.798)
- [node name="SpawnTarget16" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -38.368, 7, -20.8078)
- [node name="DynamicShapes" type="Node3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -26.3192, 1.2359, 38.0117)
- [node name="RigidBodyBox" type="RigidDynamicBody3D" parent="DynamicShapes"]
- [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyBox"]
- shape = SubResource( "1" )
- [node name="RigidBodyCapsule" type="RigidDynamicBody3D" parent="DynamicShapes"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 0)
- [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyCapsule"]
- shape = SubResource( "2" )
- [node name="RigidBodyCylinder" type="RigidDynamicBody3D" parent="DynamicShapes"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 0, 0)
- [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyCylinder"]
- shape = SubResource( "3" )
- [node name="RigidBodyConvex" type="RigidDynamicBody3D" parent="DynamicShapes"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0)
- [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodyConvex"]
- transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
- shape = SubResource( "4" )
- [node name="RigidBodySphere" type="RigidDynamicBody3D" parent="DynamicShapes"]
- transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 0, 0)
- [node name="CollisionShape" type="CollisionShape3D" parent="DynamicShapes/RigidBodySphere"]
- shape = SubResource( "5" )
- [node name="StaticScene" parent="." instance=ExtResource( "5" )]
- [node name="StaticBodyWalls" type="StaticBody3D" parent="."]
- [node name="CollisionShape1" type="CollisionShape3D" parent="StaticBodyWalls"]
- transform = Transform3D(-1.62921e-07, 1, 0, -1, -1.62921e-07, 0, 0, 0, 1, -50, 0, 0)
- shape = SubResource( "6" )
- [node name="CollisionShape2" type="CollisionShape3D" parent="StaticBodyWalls"]
- transform = Transform3D(-1.62921e-07, -1, 0, 1, -1.62921e-07, 0, 0, 0, 1, 50, 0, 0)
- shape = SubResource( "6" )
- [node name="CollisionShape3" type="CollisionShape3D" parent="StaticBodyWalls"]
- 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)
- shape = SubResource( "6" )
- [node name="CollisionShape4" type="CollisionShape3D" parent="StaticBodyWalls"]
- 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)
- shape = SubResource( "6" )
- [node name="Camera3D" type="Camera3D" parent="."]
- transform = Transform3D(1, 0, 0, 0, 0.881757, 0.471705, 0, -0.471705, 0.881757, 0, 20.4125, 41.0426)
- script = ExtResource( "3" )
- [node name="OmniLight" type="OmniLight3D" parent="Camera3D"]
- omni_range = 80.0
|