mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-15 13:00:07 +01:00
14 lines
389 B
GDScript
14 lines
389 B
GDScript
extends Label
|
|
|
|
func _ready() -> void:
|
|
var engine_name: String = ""
|
|
|
|
match System.get_physics_engine():
|
|
System.PhysicsEngine.GODOT_PHYSICS:
|
|
engine_name = "GodotPhysics 2D"
|
|
System.PhysicsEngine.OTHER:
|
|
var engine_setting := String(ProjectSettings.get_setting("physics/2d/physics_engine"))
|
|
engine_name = "Other (%s)" % engine_setting
|
|
|
|
text = "Physics engine: %s" % engine_name
|