mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-05 07:20:07 +01:00
Add Functional Test / Stack & Pyramid For testing stack stability. Add Functional Test / Raycasts Visually test raycast on different shapes. Add Performance Test / Broadphase Add/move/remove lots of non-colliding objects and measure time. Fix leaks on exit Some Nodes are copied and removed from the scene to be used as templates, they need to be freed manually on exit. Fix Performance Test / Contacts Positions adjusted, some shape types were not created at the center.
48 lines
1.1 KiB
GDScript
48 lines
1.1 KiB
GDScript
extends Node
|
|
|
|
|
|
var _tests = [
|
|
{
|
|
"id": "Functional Tests/Shapes",
|
|
"path": "res://tests/functional/test_shapes.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Compound Shapes",
|
|
"path": "res://tests/functional/test_compound_shapes.tscn",
|
|
},
|
|
{
|
|
"id": "Functional Tests/Friction",
|
|
"path": "res://tests/functional/test_friction.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/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/Contacts Extended",
|
|
"path" : "res://tests/performance/test_perf_contacts_extended.tscn",
|
|
},
|
|
]
|
|
|
|
|
|
func _ready():
|
|
var test_menu = $TestsMenu
|
|
for test in _tests:
|
|
test_menu.add_test(test.id, test.path)
|