|
| 1 | +[gd_scene load_steps=8 format=2] |
| 2 | + |
| 3 | +[ext_resource path="res://tests/static_scene.tscn" type="PackedScene" id=1] |
| 4 | +[ext_resource path="res://tests/performance/test_perf_contacts.gd" type="Script" id=2] |
| 5 | +[ext_resource path="res://assets/texture/godot-head.png" type="Texture" id=3] |
| 6 | +[ext_resource path="res://tests/test_options.tscn" type="PackedScene" id=4] |
| 7 | + |
| 8 | +[sub_resource type="RectangleShape2D" id=1] |
| 9 | +extents = Vector2( 5, 7 ) |
| 10 | + |
| 11 | +[sub_resource type="CircleShape2D" id=2] |
| 12 | +radius = 5.0 |
| 13 | + |
| 14 | +[sub_resource type="CapsuleShape2D" id=3] |
| 15 | +radius = 5.0 |
| 16 | +height = 7.0 |
| 17 | + |
| 18 | +[node name="Test" type="Node2D"] |
| 19 | +script = ExtResource( 2 ) |
| 20 | +_enable_debug_collision = false |
| 21 | +spawns = [ NodePath("SpawnTarget1"), NodePath("SpawnTarget2"), NodePath("SpawnTarget3"), NodePath("SpawnTarget4"), NodePath("SpawnTarget5"), NodePath("SpawnTarget6"), NodePath("SpawnTarget7"), NodePath("SpawnTarget8"), NodePath("SpawnTarget9") ] |
| 22 | +spawn_count = 300 |
| 23 | +spawn_randomize = Vector2( 10, 10 ) |
| 24 | + |
| 25 | +[node name="Options" parent="." instance=ExtResource( 4 )] |
| 26 | + |
| 27 | +[node name="SpawnTarget1" type="Node2D" parent="."] |
| 28 | +position = Vector2( 145.646, 109.462 ) |
| 29 | + |
| 30 | +[node name="SpawnTarget2" type="Node2D" parent="."] |
| 31 | +position = Vector2( 508.14, 109.113 ) |
| 32 | + |
| 33 | +[node name="SpawnTarget3" type="Node2D" parent="."] |
| 34 | +position = Vector2( 873.995, 110.042 ) |
| 35 | + |
| 36 | +[node name="SpawnTarget4" type="Node2D" parent="."] |
| 37 | +position = Vector2( 149.646, 301.462 ) |
| 38 | + |
| 39 | +[node name="SpawnTarget5" type="Node2D" parent="."] |
| 40 | +position = Vector2( 512.14, 301.113 ) |
| 41 | + |
| 42 | +[node name="SpawnTarget6" type="Node2D" parent="."] |
| 43 | +position = Vector2( 877.995, 302.042 ) |
| 44 | + |
| 45 | +[node name="SpawnTarget7" type="Node2D" parent="."] |
| 46 | +position = Vector2( 165.646, 507.462 ) |
| 47 | + |
| 48 | +[node name="SpawnTarget8" type="Node2D" parent="."] |
| 49 | +position = Vector2( 528.14, 507.113 ) |
| 50 | + |
| 51 | +[node name="SpawnTarget9" type="Node2D" parent="."] |
| 52 | +position = Vector2( 893.995, 508.042 ) |
| 53 | + |
| 54 | +[node name="StaticScene" parent="." instance=ExtResource( 1 )] |
| 55 | +visible = false |
| 56 | +position = Vector2( 0, 125.017 ) |
| 57 | + |
| 58 | +[node name="DynamicShapes" type="Node2D" parent="."] |
| 59 | + |
| 60 | +[node name="RigidBodyRectangle" type="RigidBody2D" parent="DynamicShapes"] |
| 61 | +position = Vector2( 0, 1024 ) |
| 62 | +gravity_scale = 0.0 |
| 63 | + |
| 64 | +[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyRectangle"] |
| 65 | +shape = SubResource( 1 ) |
| 66 | + |
| 67 | +[node name="RigidBodySphere" type="RigidBody2D" parent="DynamicShapes"] |
| 68 | +position = Vector2( 100, 1024 ) |
| 69 | +gravity_scale = 0.0 |
| 70 | + |
| 71 | +[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodySphere"] |
| 72 | +shape = SubResource( 2 ) |
| 73 | + |
| 74 | +[node name="RigidBodyCapsule" type="RigidBody2D" parent="DynamicShapes"] |
| 75 | +position = Vector2( 200, 1024 ) |
| 76 | +gravity_scale = 0.0 |
| 77 | + |
| 78 | +[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyCapsule"] |
| 79 | +shape = SubResource( 3 ) |
| 80 | + |
| 81 | +[node name="RigidBodyConvexPolygon" type="RigidBody2D" parent="DynamicShapes"] |
| 82 | +position = Vector2( 300, 1024 ) |
| 83 | +gravity_scale = 0.0 |
| 84 | + |
| 85 | +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConvexPolygon"] |
| 86 | +scale = Vector2( 0.1, 0.1 ) |
| 87 | +polygon = PoolVector2Array( 10.7, -54.5, 28.3596, -49.4067, 47.6282, -34.3806, 57.9717, -20.9447, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -58.0115, -20.515, -46.9473, -34.7342, -26.0876, -50.1138, -11.4152, -54.5332 ) |
| 88 | + |
| 89 | +[node name="GodotIcon" type="Sprite" parent="DynamicShapes/RigidBodyConvexPolygon"] |
| 90 | +self_modulate = Color( 1, 1, 1, 0.392157 ) |
| 91 | +scale = Vector2( 0.1, 0.1 ) |
| 92 | +texture = ExtResource( 3 ) |
| 93 | + |
| 94 | +[node name="RigidBodyConcavePolygon" type="RigidBody2D" parent="DynamicShapes"] |
| 95 | +position = Vector2( 400, 1024 ) |
| 96 | +gravity_scale = 0.0 |
| 97 | + |
| 98 | +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConcavePolygon"] |
| 99 | +scale = Vector2( 0.1, 0.1 ) |
| 100 | +polygon = PoolVector2Array( -5.93512, -43.2195, 6.44476, -42.9695, 11.127, -54.3941, 26.9528, -49.4309, 26.2037, -36.508, 37.5346, -28.1737, 47.6282, -34.3806, 58.0427, -20.9631, 51.113, -10.2876, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -51.3668, -9.98545, -57.8889, -20.5885, -46.9473, -34.7342, -37.4014, -28.547, -26.0876, -37.0323, -26.9862, -49.15, -11.4152, -54.5332 ) |
| 101 | + |
| 102 | +[node name="GodotIcon" type="Sprite" parent="DynamicShapes/RigidBodyConcavePolygon"] |
| 103 | +self_modulate = Color( 1, 1, 1, 0.392157 ) |
| 104 | +scale = Vector2( 0.1, 0.1 ) |
| 105 | +texture = ExtResource( 3 ) |
0 commit comments