godot-demo-projects/3d/physics_tests/utils/exception_cylinder.gd

9 lines
229 B
GDScript3
Raw Normal View History

2020-04-25 12:47:47 +02:00
extends Node
func _enter_tree():
if System.get_physics_engine() == System.PhysicsEngine.GODOT_PHYSICS:
Log.print_error("Cylinder shapes not supported, removing '%s'." % name)
get_parent().remove_child(self)
queue_free()