mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 06:09:46 +03:00
- Create bodies by duplicating the ones from the scene to allow custom settings on them for testing purpose - Rename 3D test with multiple groups of bodies "Contact Islands" instead of "Contacts Extended" for clarity - Added "Contact Islands" test for 2D - Fixed log spamming with "Contact Islands" tests due to printing log messages for each group of bodies - Added parameter to randomize spawn positions in order to make contact separation more balanced (avoids artifacts like a huge column for circles in 2D test) - Using smaller shapes and larger amount of objects by default to test more extreme case
64 lines
1.5 KiB
GDScript
64 lines
1.5 KiB
GDScript
extends Node
|
|
|
|
|
|
var _tests = [
|
|
{
|
|
"id": "Functional Tests/Shapes",
|
|
"path": "res://tests/functional/test_shapes.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Box Stack",
|
|
"path": "res://tests/functional/test_stack.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Box Pyramid",
|
|
"path": "res://tests/functional/test_pyramid.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Collision Pairs",
|
|
"path": "res://tests/functional/test_collision_pairs.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Character - Slopes",
|
|
"path": "res://tests/functional/test_character_slopes.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Character - Tilemap",
|
|
"path": "res://tests/functional/test_character_tilemap.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Character - Pixels",
|
|
"path": "res://tests/functional/test_character_pixels.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/One Way Collision",
|
|
"path": "res://tests/functional/test_one_way_collision.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Joints",
|
|
"path": "res://tests/functional/test_joints.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Raycasting",
|
|
"path": "res://tests/functional/test_raycasting.tscn",
|
|
},
|
|
{
|
|
"id": "Performance Tests/Broadphase",
|
|
"path": "res://tests/performance/test_perf_broadphase.tscn",
|
|
},
|
|
{
|
|
"id": "Performance Tests/Contacts",
|
|
"path": "res://tests/performance/test_perf_contacts.tscn",
|
|
},
|
|
{
|
|
"id" : "Performance Tests/Contact Islands",
|
|
"path" : "res://tests/performance/test_perf_contact_islands.tscn",
|
|
},
|
|
]
|
|
|
|
|
|
func _ready():
|
|
var test_menu = $TestsMenu
|
|
for test in _tests:
|
|
test_menu.add_test(test.id, test.path)
|