mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 05:20:06 +01:00
16 lines
455 B
GDScript
16 lines
455 B
GDScript
extends Label
|
|
|
|
|
|
func _ready() -> void:
|
|
var engine_name: String = ""
|
|
match System.get_physics_engine():
|
|
System.PhysicsEngine.GODOT_PHYSICS:
|
|
engine_name = "GodotPhysics 3D"
|
|
System.PhysicsEngine.JOLT_PHYSICS:
|
|
engine_name = "Jolt Physics"
|
|
System.PhysicsEngine.OTHER:
|
|
var engine_setting := str(ProjectSettings.get_setting("physics/3d/physics_engine"))
|
|
engine_name = "Other (%s)" % engine_setting
|
|
|
|
text = "Physics engine: %s" % engine_name
|