Add demo: Physics Tests 2D

Similar to its 3D counterpart, with tests using 2D physics.
This commit is contained in:
PouleyKetchoupp
2020-12-09 20:01:30 -07:00
parent 3147c6c5bd
commit 8241be5817
37 changed files with 1465 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
extends Label
func _process(_delta):
var engine_name = ""
match System.get_physics_engine():
System.PhysicsEngine.GODOT_PHYSICS:
engine_name = "Godot Physics"
System.PhysicsEngine.OTHER:
var engine_setting = ProjectSettings.get_setting("physics/2d/physics_engine")
engine_name = "Other (%s)" % engine_setting
set_text("Physics engine: %s" % engine_name)